J
Jordi Rico
Hi, this is something I've been trying and I'm not capable to do.
I'm able to read from any XML file with .Net objects like XMLDoc,
XMLNode, etc, with no problem.
But when I want to create an XML file, I don't know how to use these
objects (or the ones supposed to do this), so I have to use
StreamWriter in this way:
oSW.Write("<tag value=""1"">")
I'm sure there's a best way to do this, but I haven't found yet.
I'd like some help with an example of code to write to a file an XML as
simple like this one:
<RootNode>
<tag value="1"/>
<tag value="2">
<subtag value="33" id="p"/>
</tag>
</RootNode>
Thanks in advance!
I'm able to read from any XML file with .Net objects like XMLDoc,
XMLNode, etc, with no problem.
But when I want to create an XML file, I don't know how to use these
objects (or the ones supposed to do this), so I have to use
StreamWriter in this way:
oSW.Write("<tag value=""1"">")
I'm sure there's a best way to do this, but I haven't found yet.
I'd like some help with an example of code to write to a file an XML as
simple like this one:
<RootNode>
<tag value="1"/>
<tag value="2">
<subtag value="33" id="p"/>
</tag>
</RootNode>
Thanks in advance!