I am parsing an xml file generated by an external program. I would then like to add custom annotations to this file, using my own namespace. My input looks as below:
You could replace the root element to add 'kjw' to its nsmap. Then xmlns declaration would be only in the root element.