C
Christian H
Hello!
I am currently playing around with XmlTextReader and XmlTextWriter.
I've got the TextWriter to write out nodes in this form:
<node>
<childnode>moredata</childnode>
<childnode>moredata</childnode>
<childnode>moredata</childnode>
</node>
What I'having trouble with, is to read these nodes using xmlTextReader.
In all the examples I've seen, the xml format has been different from the
format I've used:
<node someAttribute="data" someOtherAtribute="moredata">
<childnode someAttribute="data" someOtherAtribute="moredata"/>
<childnode someAttribute="data" someOtherAtribute="moredata"/>
</node>
So , I have 2 questions:
-Does anyone have an example on how to read the xmlformat I've used?
-Is this a correct / incorrect xml data format?
Also, If an attribute or a node's data contains " or ', will this mess up
the xmlReader?
Example: <childnode someAttribute="She didn't do it">
Regards Christian H.
I am currently playing around with XmlTextReader and XmlTextWriter.
I've got the TextWriter to write out nodes in this form:
<node>
<childnode>moredata</childnode>
<childnode>moredata</childnode>
<childnode>moredata</childnode>
</node>
What I'having trouble with, is to read these nodes using xmlTextReader.
In all the examples I've seen, the xml format has been different from the
format I've used:
<node someAttribute="data" someOtherAtribute="moredata">
<childnode someAttribute="data" someOtherAtribute="moredata"/>
<childnode someAttribute="data" someOtherAtribute="moredata"/>
</node>
So , I have 2 questions:
-Does anyone have an example on how to read the xmlformat I've used?
-Is this a correct / incorrect xml data format?
Also, If an attribute or a node's data contains " or ', will this mess up
the xmlReader?
Example: <childnode someAttribute="She didn't do it">
Regards Christian H.