Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

split XML to separate xml files

Status
Not open for further replies.

kukelyk

Technical User
Mar 23, 2005
57
HU
The software I use store its toolbars in one XML file.
<?xml version="1.0"?>
XML:
<toolbars version="1">

<toolbar id="1" name="my toolbar1">
<command_button command="EDIT SELECT MOVES" bitmap="RTOOL" tooltip="select all moves"/>
..
</toolbar>


<toolbar id="2" name="my toolbar2">
<command_button command=..
..
</toolbar>

</toolbars>


My goal is to separate them like
Code:
<toolbars version="1">
<toolbar id="1" name="my toolbar1">
<sub_xml1>
</toolbar>

<toolbar id="2" name="my toolbar2">
<sub_xml2>
</toolbar>

</toolbars>
I have no ideas at all, I have some html knowledge, but no xml.
Any help would be appreciated..
 
Some tutorials are probably a good starting point.
XML for basic understanding.
XSLT for understanding how to transform an XML document into another XML document (or HTML or text).
XPath for understanding how to reference pieces of an XML document (similar to referencing files and directories within a file system).

Once you have some of this basic knowledge, you should be able to come back with a better problem description. Right now, to me at least, your goal seems to transform one XML document into another, single, XML document. However, the title you gave this thread indicates you want to have multiple XML documents derived from a single XML document. So, please clarify...

Tom Morrison
Hill Country Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top