Skip to main content

Encode XML

XML
<encode:xml var="var">
string
</encode:xml>

<encode:xml /> encodes a value by converting special reserved characters to their applicable XML entites.

<encode:xml /> is the complement of the <decode:xml /> operation.

Attention:

The characters mentioned above have special significance in XML, and should be represented by XML entities if they are to preserve their meanings.

Attributes

NameTypeDescriptionDefined By
varvarResult variable name encode:xml

Results

BindingTypePredicate
varstringN/A

Examples

XML
<output>
<encode:xml>My name is "iXML" &amp; I am a XML derivative!</encode:xml>
</output>

<!-- My name is &quot;iXML&quot; &amp; I am a XML derivative! -->