XML Serialize

Serializes the node set result of the enclosed tokens as XML. Depending on the content of the node set, the resulting string is either a well-formed XML document or a well-formed parsed general entity. If a node set is passed, it returns a string representation of the node set. If a string value of a node set is passed, it returns a string of valid tokens escaped of XML or HTML characters that can be included in a text node. For example, you can use the XML Serialize token to trace a node set and return a particular variable in a readable format, which can be useful for debugging purposes. You can also use XML Serialize to escape special characters, including &, &amp;, <, or &lt;.

Example

XML Serialize