add namespaces to elements ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cmrchs@yahoo.com

    add namespaces to elements ?

    Hi,

    in XML.NET : is there an easy way to provide all elements in an xml-document of a namespace-prefix.

    Example of source file :
    <book>
    <title>Alaska </title>
    </book>

    convert to :

    <bk:book xmlns:bk="http://localhost/mybooks">
    <bk:title>Alask a</bk:title>
    </bk:book>

    can this be done using XmlDocument or another class ?
    thanks
    Chris

    *************** *************** *************** *************** **********
    Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
    Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Working...