D
daz_oldham
Hi Everyone
I have an xml document, and for the purposes of my application, I am
going to take a node of the xml (child), add a child to it and then
store it into the database for later use.
So I start with:
<doc xmlns:"http://www.xml.com">
<stuff>
<... />
</stuff>
<child>
<element value="x" />
</child>
</doc>
And want to store:
<child>
<newelement value="w" />
<element value="x" />
</child>
However, because my XmlDocument() is under the given namespace, when I
have created the above node, I am getting the namespace attributed to
it like so:
<child xmlns="http://www.xml.com">
<newelement value="w" xmlns="" />
<element value="x" />
</child>
Is there any way I can stop this from happenening, because later on in
the process, the XmlNode will be appended to an XmlDocument under this
namespace.
Many thanks
Darren
I have an xml document, and for the purposes of my application, I am
going to take a node of the xml (child), add a child to it and then
store it into the database for later use.
So I start with:
<doc xmlns:"http://www.xml.com">
<stuff>
<... />
</stuff>
<child>
<element value="x" />
</child>
</doc>
And want to store:
<child>
<newelement value="w" />
<element value="x" />
</child>
However, because my XmlDocument() is under the given namespace, when I
have created the above node, I am getting the namespace attributed to
it like so:
<child xmlns="http://www.xml.com">
<newelement value="w" xmlns="" />
<element value="x" />
</child>
Is there any way I can stop this from happenening, because later on in
the process, the XmlNode will be appended to an XmlDocument under this
namespace.
Many thanks
Darren