I have the following xml
<book>
<chapter>this is a sample text</chapter>
</book>
and need to add a namespace to it to be like the one below
<ns0:book xmlns:ns0="http://mybookurl/sample">
<chapter>this is a sample text</chapter>
</ns0:book>
I tried Greco suggestions but it does not work. Creating a specific XML document using namespaces in C#
would appreciate any help!
Thanks