
zatlas1
User
Sep 3, 2011, 8:44 PM
Post #1 of 4
(2634 views)
|
including XML fragments into the main xml file
|
Can't Post
|
|
Hi all I have a main XML file like this: <myxmlroot> <myxmlproject> <myxmlincludetype1 filename="ABC.EFG"/> <myxmlincludetype2 filename="HIJ.KLM" attributes.../> <myxmlbranchhead branchname="STEP1" attributes...> <myxmlleafnode leafnodename="LFNM1" attributes.../> etc. <myxmlbranchhead/> <myxmlproject/> <myxmlroot/> The fragments look like
<myxmlroot> <myxmlincludetype2 filename="NOP.QRS" attributes.../> <myxmlbranchhead branchname="STEP3" attributes...> <myxmlleafnode leafnodename="LFNM3" attributes.../> etc. <myxmlbranchhead/> <myxmlroot/> 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. Thanks ZA
|