nondrinker
Programmer
Hello, being new to the world of XML, i am not
sure if this is a correct XML document or not, or
is it possible to generate a document like this.
I have to generate two identicle elements, in this
case the "<Document>" element with 2 different
sets of child nodes. Like in the example
below, the first set of <Document> tag
does not have a <zip> child node.
<Response>
<Document>
<Name>Test1</Name>
<Address>Test2</Address>
<City>Test3</City>
</Document>
<Document>
<Name>Test1</Name>
<Address>Test2</Address>
<City>Test3</City>
<Zip>Test4</Zip>
</Document>
</Response>
I was wondering, if this is possible, or do i have to
do something like this, by making a new <Document2> element:
<Response>
<Document>
<Name>Test1</Name>
<Address>Test2</Address>
<City>Test3</City>
</Document>
<Document2>
<Name>Test1</Name>
<Address>Test2</Address>
<City>Test3</City>
<Zip>Test4</Zip>
</Document2>
Thank you.