ThomasOatman
Programmer
I would like to create a hierarchical (nested) tree of xml files – one includes another, includes another.
Something like so:
AllTests
Suite1
TestCase1
TestCase2
Suite2
TestCase3
TestCase4
Using the ENTITY tag I am able to include Suite1 and Suite2 into the AllTests.xml. But then I get an error inside Suite1 on the DOCTYPE tag so it can’t include a file on its own.
I am very new at XML but I’ve been searching a lot – the only way I find to even include one XML into another is with the external entity. Is there another way? Does it support the nested inclusion I am trying to accomplish?
What I’ve done so far is just create my own <include file=”testcase1.xml” /> and have the app open the sub-xml and do another parse. But I was hoping to just have the parser (TinyXML/Xerces) do all the inclusion and spit out one object tree for the whole mess.
-thomas
Something like so:
AllTests
Suite1
TestCase1
TestCase2
Suite2
TestCase3
TestCase4
Using the ENTITY tag I am able to include Suite1 and Suite2 into the AllTests.xml. But then I get an error inside Suite1 on the DOCTYPE tag so it can’t include a file on its own.
I am very new at XML but I’ve been searching a lot – the only way I find to even include one XML into another is with the external entity. Is there another way? Does it support the nested inclusion I am trying to accomplish?
What I’ve done so far is just create my own <include file=”testcase1.xml” /> and have the app open the sub-xml and do another parse. But I was hoping to just have the parser (TinyXML/Xerces) do all the inclusion and spit out one object tree for the whole mess.
-thomas