Revision [878]

This is an old revision of CommandXcat made by DavidLee on 2009-11-23 07:00:35.

 

Command xcat


Name

xcat combine and concatenate XML files to a single XML document

Synopsis

xcat [-w string|element ] [-r] [-method output-method] [file ...]

Description

Concatenates one or more XML files into a single xml fiile.

-w string Wraps each xml file with an element named "string"
-w element Wraps each xml file with the specified element
-method output-method Changes the default output method for serialzation. Must be one of (xml,html,xhtml,text)

If no files are specified, then stdin is read.
If no file or one file is specified and no -w argument is given, the file is parsed and serialized without wrapping.
If a -w argument is given the the file is wrapped with a container element.
If the -r argument is specified then the root element is stripped from each file,
if no -w argument then only the first child is emited, otherwise all children of the root node is emited.

Note that the -r flag assumes that the xml source either comes from a file or is explicitly wrapped on a document node.



CategoryCommands

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