In loaded object model prefix XmlDocument elements with namespace

Posted by jdk on Stack Overflow See other posts from Stack Overflow or by jdk
Published on 2010-03-24T03:24:04Z Indexed on 2010/03/24 3:43 UTC
Read the original article Hit count: 497

Filed under:
|
|
|
|

I have a "plain" XmlDocument loaded like so:

<root>
    <element1 />
    <element2></element2>
</root>

and want to qualify the elements with namespaces like so while the object model is loaded

<root xmlns:abc="urn:something">
    <abc:element1 />
    <abc:element2></abc:element2>
</root>

before writing it out.

© Stack Overflow or respective owner

Related posts about .net-2.0

Related posts about xmldocument