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
| Name | Type | Description | Defined By |
|---|---|---|---|
| var | var | Result variable name | encode:xml |
Results
| Binding | Type | Predicate |
|---|---|---|
| var | string | N/A |
Examples
XML
<output>
<encode:xml>My name is "iXML" & I am a XML derivative!</encode:xml>
</output>
<!-- My name is "iXML" & I am a XML derivative! -->