Revision [896]
This is an old revision of CommandXEcho made by DavidLee on 2009-11-24 17:22:37.
Command xecho
Name
xecho prints XML arguments to outputSynopsis
xecho serialize options arg ...
Prints its arguments to the standard output seperated by the seqeunce seperator ("\n");
If no arguments are given then nothing is output.
This command is similar to the echo command except that it does not
serialize arguments as text if the output is an XML output port or stream.
If the output is a text output port or stream then a newline is printed at the end of all arguments.
Example
# Text example
$ xecho hi there hi there
# Example using xecho to construct sequences
$ xecho arg1 1 "hi" <[ <foo>bar</foo>]> arg5 >{port} $ xecho <[ $port[4] ]> <foo>bar</foo>
# Appending to a sequence with xecho
$ xecho <[ <foo/> ]> >{port} $ xecho 2 3 4 >>{port} $ xecho <[ <bar/> ]> >>{port} $ xecho $port <foo/> 2 3 4 <bar/>
CategoryCommands