Blog Post

Azure Integration Services Blog
3 MIN READ

🎉Announcing the General Availability of the XML Parse and Compose Actions in Azure Logic Apps

hcamposu's avatar
hcamposu
Icon for Microsoft rankMicrosoft
Nov 25, 2025

XML joins JSON as a native data format for Azure Logic Apps!

The XML Operations connector

 

We have recently added two actions for the XML Operations connector: Parse XML with schema and Compose XML with schema. With this addition, Logic Apps customers can now interact with the token picker during design time. The tokens are generated from the XML schema provided by the customer. As a result, the XML document and its contained properties will be easily accessible, created and manipulated in the workflow.

 

XML parse with schema

 

The XML parse with schema allow customers to parse XML data using an XSD file (an XML schema file). XSD files need to be uploaded to the Logic App schemas artifacts or an Integration account. Once they have been uploaded, you need to enter the enter your XML content, the source of the schema and the name of the schema file. The XML content may either be provided in-line or selected from previous operations in the workflow using the token picker.

 

 

For instance, the following is a parsed XML:

 

 

 

XML compose with schema

 

The XML compose with schema allows customers to generate XML data, using an XSD file. XSD files need to be uploaded to the Logic App schemas artifacts or an Integration account. Once they have been uploaded, you should select the XSD file along with entering the JSON root element or elements of your input XML schema. The JSON input elements will be dynamically generated based on the selected XML schema.

 

 

For instance, the following is a Composed file:

 

Learnings from Transition from Public Preview to General Availability:

Upon feedback received from multiple customers, we would love to share the following recommendations and considerations, that will you maximize the reliability, flexibility, and internationalization capabilities of XML Parse and Compose actions in Azure Logic Apps. 

 Handling Array Inputs in XML

  • Switch to array input mode when mapping arrays. By default, the Logic App Designer expects individual array items for XML elements with maxOccurs > 1. If you want to assign an entire array token, use the array input mode icon in the Designer. This avoids unnecessary For Each loops and streamlines your workflow.

For instance, the following:

 

 

Click the Switch to input entire arrayEnter your array token.

Managing Non-UTF-8 Encoded XML

  • Leverage the encoding parameter in XML Compose. Customers can specify the desired character encoding (e.g., iso-2022-jp for Japanese). This controls both the .NET XML writer settings and the output encoding, allowing for broader internationalization support.
  • Example configuration: Use the XML writer settings property to set encoding as needed.

Safe Transport of Binary and Non-UTF-8 Content

  • Utilize the Logic App content envelope. The XML Compose action outputs content in a safe envelope, enabling transport of binary and non-UTF-8 content within the UTF-8 JSON payload. Downstream actions (e.g., HTTP Request) can consume this envelope directly.

Content-Type Header Management

  • XML Compose now specifies the exact character set in the Content-Type header. This ensures downstream systems receive the correct encoding information. For example, application/xml; charset=iso-2022-jp will be set for Japanese-encoded XML.

Consuming XML Output in HTTP Actions

  • Reference the XML output property directly in HTTP actions. The envelope’s content-type is promoted to the HTTP header, and the base64-encoded content is decoded and sent as the raw HTTP body. This preserves encoding and binary fidelity.

Documentation and External References

  • Do not confuse Content-Type with Content-Encoding. Content-Type specifies character set encoding (e.g., UTF-8, ISO-2022-JP), while Content-Encoding refers to compression (e.g., gzip).

 

Check this short video to learn more:

 

Updated Nov 25, 2025
Version 1.0
No CommentsBe the first to comment