Skip to content

Instantly share code, notes, and snippets.

@ApigeeSamples
Created May 2, 2012 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ApigeeSamples/2581657 to your computer and use it in GitHub Desktop.
Save ApigeeSamples/2581657 to your computer and use it in GitHub Desktop.
JSON to XML
<JSONToXML name="myPolicy">
<Source>request</Source>
<OutputVariable>response</OutputVariable>
<Options>
<InvalidCharsReplacement>_</InvalidCharsReplacement>
<TextNodeName>#text</TextNodeName>
<NullValue>I_AM_NULL</NullValue>
<AttributeBlockName>#attrs</AttributeBlockName>
<AttributePrefix>@</AttributePrefix>
<NamespaceBlockName>#namespaces</NamespaceBlockName>
<DefaultNamespaceNodeName>$default</DefaultNamespaceNodeName>
<NamespaceSeparator>:</NamespaceSeparator>
<ArrayRootElementName>Array</ArrayRootElementName>
<ArrayItemElementName>Item</ArrayItemElementName>
</Options>
</JSONToXML>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment