1

I am trying to create a XML using xerces C++. However I am getting xmlns="" after each element node. Can someone please guide me how can this be removed?

Please find my implementation below

p_DOMImplementation = DOMImplementationRegistry::getDOMImplementation(XMLString::transcode("core"));

Thanks

Mayank Jain
  • 2,504
  • 9
  • 33
  • 52

1 Answers1

0

Issue got resolved. Issue was coming because I assigned a namespace to Child node but haven't assigned any namespace to root root.

Once I did assigned namespace to root node too the empty xmlns attributes were gone.

Mayank Jain
  • 2,504
  • 9
  • 33
  • 52