I am generating xml in nodejs by using xmlbulilder package, now my requirement is to add namespace to xml. for example
<nsA:root xmlns:nsA="namespaceA" xmlns:nsB="namespaceB">
<nsB:nodeA attrC="valC">nodeText</nsB:nodeA>
</nsA:root>
how we can do it? Thanks for help!