xmlNodeToDocument bug workaround

Hi.
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?

Thanks.

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:

[FONT=‘Arial’,‘sans-serif’][URL=“https://advantage.webmethods.com/knowledgebase?oid=1612366225”][COLOR=#0000ff]https://advantage.webmethods.com/knowledgebase?oid=1612366225[/color][/URL][/font]

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?