For Programmers: Free Programming Magazines  


Home > Archive > C# > September 2005 > XML string removing namespace









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author XML string removing namespace
Maziar Aflatoun

2005-09-13, 6:59 pm

Hello,

I have a string variable that contains XML data with many different
namespaces. I like to remove all the namespaces from my XML (clean the XML).
What's the quickest way to do this?

Ex.
<report xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" > change to
<report>

Thanks
Maz.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com