Additions:
[[CommandXquote]]
Deletions:
xquote -n <[ <foo>bar</foo> ]> >{var}
xecho <[ <elem>{$var}</elem> ]>
<elem><foo>bar</foo></elem>
var=<[ <foo>bar</foo> ]>
xtype $var $<(xquote $var)
echo $<(xquote $var)
xecho $<(xquote $var)
Result:
element()
xs:string
<foo>bar</foo>
Note that xquote used in combination with [[CommandXecho xecho]] will XML Encode the result, wherase using [[CommandEcho echo]] will not.
[[CommandXunquote]]