as stated here the DOMConfiguration is not yet implemented. I need to normalize the namespaces, so that namespaces in child elements will be moved to the root element as long as prefixes are provided.
Is there any non-regexp way to do this?
Through, I am not sure, if this is even possible by DOMConfiguration but I was not even able to try it as you can see.
Maybe there is a way by setting up the libxml?
Thanks.
Well, as commented I have rewritten my code, to take care of namespaces on DOM build-up. This works as follows:
Now, everytime (saying everytime here, to make things easier now) I add an element as a child of another element, I call this method and mostly provide the documentElement as the first parameter to add namespaces to the root element: