Revision [1116]

This is an old revision of CommandXEcho made by DavidLee on 2010-01-05 05:22:41.

 

Command xecho



Name

xecho prints XML arguments to output



Synopsis


xecho [ serialization options ] [options] arg ...


Prints its arguments to the standard output seperated by the seqeunce separator ("\n") and terminated by the sequence terminator.

Options


-nOmits the sequence terminator after all arguments are serialized
-p port
-port port
Outputs to a named port instead of output




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.

Supports the standard [ serialization options ]



Example

# Text example
$ xecho hi there
hi
there


# Example using xecho to construct sequences
xecho arg1 1 "hi" <[ <foo>bar</foo>]> arg5 >{var}
xecho <[ $var[4] ]>

Result
<foo>bar</foo>


# Appending to a sequence with xecho
xecho <[ <foo/> ]>  >{var}
xecho 2 3 4            >>{var}
xecho <[ <bar/> ]>  >>{var}
xecho $var

Result
<foo/>
2
3
4
<bar/>


Commands
CategoryCommands
See Also echo



There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki