I’m using the following API’s to create Dom document with namespace
and my question is why I need to put the first argument “http://www.w3.org/2000/xmlns/”
does it some kind of constant ?
when I put null I get error . I ask it since it too generic so why I should put it ?
rootTreeNode.setAttributeNS("http://www.w3.org/2000/xmlns/" ,"xmlns:m", "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata");
Thanks!
Here is how to deal with namespace: