Browse by Tags

All Tags » XML (RSS)

Creating XML with namespaces with JavaScript and MSXML

In my previous post I showed how to use the W3C DOM API to create XML with namespaces, using namespace aware methods like createElementNS or setAttributeNS of the W3C DOM Level 2 and 3 Core API. While MSXML (all versions including the latest, MSXML 6...

Creating XML with namespaces with JavaScript and the W3C DOM

Let's assume you want to create the following XML document with JavaScript and the W3C DOM API : < root xmlns = " http://example.com/ns1 " > < foo > < bar > foobar </ bar > </ foo > </ root > The key to...