Empty XML namespace inserted when using XmlCursor.copyXml()

View: New views
1 Messages — Rating Filter:   Alert me  

Empty XML namespace inserted when using XmlCursor.copyXml()

by Pascal Maugeri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I'm using XmlCursor.copyXml() to insert an element within a XML document.

The element is inserted at the right place but contains an empty namespace:

eg. <display-name xmlns="">Hola</display-name>

What should I do in order to not have this empty namespace definition in the result ?

Regards,
Pascal