Sep 3, 2011, 8:44 PM
Post #1 of 4
including XML fragments into the main xml file
I have a main XML file like this:
<myxmlincludetype2 filename="HIJ.KLM" attributes.../>
<myxmlbranchhead branchname="STEP1" attributes...>
<myxmlleafnode leafnodename="LFNM1" attributes.../>
The fragments look like
<myxmlincludetype2 filename="NOP.QRS" attributes.../>
<myxmlbranchhead branchname="STEP3" attributes...>
<myxmlleafnode leafnodename="LFNM3" attributes.../>
The myxmlincludetype1 and type2 are optional. When present they mean that the filename, which contain the fragment should be read, stripped from the myxmlroot tags and embeded in the output XML.
Could anybody please guide me where to look, it is the first time I deal with XML.