xmlNodeToDocument bug workaround

there seems to be a bug with xmlNodeToDocument that all attr starting with xmlns: are dropped. Does anybody have the same experience and any workaround?


Keep in mind the advice from the article mentioned in the How to request help to maximize useful responses:

You’ve described the symptom but may have incorrectly guessed that there is a bug. Can you elaborate on the specifics of your call to xmlNodeToDocument and the inputs you are specifying?

I am encountering a similar situation as the following SR:


The patch seems to be pending but it would be nice to have a workaround for the time being.

You can use pub.xml:queryXMLNode with XQL to get the namespace URI of an element. This might not be what you’re after though.

I’m curious as to what this info would be used for?