Wiki source for CommandXRead


Show raw source

======Command xread======

====Name====
**xread** Reads an xml document into a variable


====Synopsis====
**xread** variable

Reads up to EOF from stdin and parses the stream as an XML document and assigns it to the specified variable.


====Examples====
Example: Read into variable an XML document from a file

%%
xread a < file.xml
%%


Example: Read into variable an XML document from a Here Document.
%%
xread a <<EOF
<test>
data
</test>
EOF
%%
----
[[Commands]]
[[CategoryCommands]]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki