I'm using XmlDocument for removing xmlns attribute from following xml:
<Root xmlns="http://my.namespace">
<Product>
<Rest of the document />
</Product>
</Root>
I want output like following:
<Root>
<Product>
<Rest of the document/>
</Product>
</Root>
I can remove this by using xdocument. But Is there any way to delete this by using XmlDocument?