How to remove XML namespace from string

Discussion in 'ASP .Net' started by Maziar Aflatoun, Sep 13, 2005.

  1. 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.
     
    Maziar Aflatoun, Sep 13, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kathy Burke
    Replies:
    0
    Views:
    423
    Kathy Burke
    Aug 4, 2003
  2. Jamie Chen
    Replies:
    2
    Views:
    503
    Priscilla Walmsley
    Jun 19, 2004
  3. Henry S. Thompson
    Replies:
    0
    Views:
    485
    Henry S. Thompson
    Sep 7, 2005
  4. Jethrie-JDuprez in the news
    Replies:
    4
    Views:
    2,229
    Mayeul
    Apr 26, 2009
  5. Kee Nethery
    Replies:
    12
    Views:
    2,578
    Stefan Behnel
    Jun 27, 2009
  6. Web Developer

    Use XML attributes to specify another XML name or namespace...

    Web Developer, Feb 17, 2005, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    1,129
    Web Developer
    Feb 17, 2005
  7. Matt
    Replies:
    3
    Views:
    567
    Bob Barrows [MVP]
    Apr 23, 2004
  8. Erik Wasser
    Replies:
    5
    Views:
    843
    Peter J. Holzer
    Mar 5, 2006
Loading...