Revision [357]

This is an old revision of CommandXsplit made by DavidLee on 2009-01-03 07:12:37.

 

Command xsplit


Name

xsplit Splits an xmlfile into multiple files

Synopsis

xsplit [-w string|element] [-c children] [-n] [-p prefix] [-s suffix] [-e ext] [file]

Description

Splits a single xml file into multiple xml files.

-w string Wraps each xml file with an element named "string"
-w element Wraps each xml file with the specified element
-c children Number of child elements to put in each file (default=1)
-n Do not wrap a root element around each element
-p prefix Prefix string to use for creating filename. (default="x")
-s suffix Suffix string to use for creating filename. (default="")
-e ext Extension to use for creating filename. (default=".xml")


If no files are specified, then stdin is read.
If a -w argument is given the output files are wrapped with the supplied container element instead of the root element of the input.

Output files are created by reading up to the root element, and replicating that markup including either the root element,
the wrap element or no root element, then for each (n) child element(s) of the root creating a new xml file with the common header
elements.



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