Skip to content

Commit be4af86

Browse files
authored
Merge pull request #100900 from VitaliyKurokhtin/patch-1
Update api-management-transformation-policies.md
2 parents cb15d40 + b44ca92 commit be4af86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/api-management/api-management-transformation-policies.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ This article provides a reference for API Management policies used to transform
5050
consider-accept-header="true | false"
5151
parse-date="true | false"
5252
namespace-separator="separator character"
53+
namespace-prefix="namepsace prefix"
5354
attribute-block-name="name" />
5455
```
5556

@@ -64,7 +65,7 @@ Consider the following policy:
6465
</inbound>
6566
<outbound>
6667
<base />
67-
<json-to-xml apply="always" consider-accept-header="false" parse-date="false" namespace-separator=":" attribute-block-name="#attrs" />
68+
<json-to-xml apply="always" consider-accept-header="false" parse-date="false" namespace-separator=":" namespace-prefix="xmlns" attribute-block-name="#attrs" />
6869
</outbound>
6970
</policies>
7071
```
@@ -118,6 +119,7 @@ The XML response to the client will be:
118119
|consider-accept-header|The attribute must be set to one of the following values.<br /><br /> - true - apply conversion if XML is requested in request Accept header.<br />- false -always apply conversion.|No|true|
119120
|parse-date|When set to `false` date values are simply copied during transformation|No|true|
120121
|namespace-separator|The character to use as a namespace separator|No|Underscore|
122+
|namespace-prefix|The string that identifies property as namespace attribute, usually "xmlns". Properties with names beginning with specified prefix will be added to current element as namespace declarations.|No|N/A|
121123
|attribute-block-name|When set, properties inside the named object will be added to the element as attributes|No|Not set|
122124

123125
### Usage

0 commit comments

Comments
 (0)