I have the following issue. I'm trying to read to following XML doc.
<Main>
<Submain>
<SubField1/>
<SubField2/>
</Submain>
<Field1/>
<Field2>AnyText Value</Field2>
</Main>
I loop using foreach XmlNode and testing the HasChildNodes property.
When I get to the <Submaintag the HasChildNodes property is True
When I get to the <Field1/tag the HasChildNodes property is False
so far it's clear. Then...
When I get to the <Field2tag the HasChildNodes property is True???!!!
Is it correct that the value of the <Field2node is considered a ChildNode?
Please explain.
Thks
Bart
<Main>
<Submain>
<SubField1/>
<SubField2/>
</Submain>
<Field1/>
<Field2>AnyText Value</Field2>
</Main>
I loop using foreach XmlNode and testing the HasChildNodes property.
When I get to the <Submaintag the HasChildNodes property is True
When I get to the <Field1/tag the HasChildNodes property is False
so far it's clear. Then...
When I get to the <Field2tag the HasChildNodes property is True???!!!
Is it correct that the value of the <Field2node is considered a ChildNode?
Please explain.
Thks
Bart
Comment