E
engwar
I'm new to XML and have been given an XML document for which I need to
reverse-engineer a DTD.
There are nodes that have one of two different sets of children. I'm
not sure how to represent this in a DTD. We will have a bunch that
match the first two below, with ChildNode1 and ChildNode2 but then
will have a group that have different child-nodes.
How can I create a dtd to describe this?
Thanks.
<someNode>
<childNode1/>
<childNode2/>
</someNode>
<someNode>
<childNode1/>
<childNode2/>
</someNode>
<someNode>
<childNode3/>
<childNode4/>
</someNode>
reverse-engineer a DTD.
There are nodes that have one of two different sets of children. I'm
not sure how to represent this in a DTD. We will have a bunch that
match the first two below, with ChildNode1 and ChildNode2 but then
will have a group that have different child-nodes.
How can I create a dtd to describe this?
Thanks.
<someNode>
<childNode1/>
<childNode2/>
</someNode>
<someNode>
<childNode1/>
<childNode2/>
</someNode>
<someNode>
<childNode3/>
<childNode4/>
</someNode>