XML namespace info lost when using xmlNodeToDocument

Hi,

I’m having problems with XML namespace declarations being lost when using the xmlNodeToDocuemnt service.

The root tag of the xml look like this:

<deliverymessage>

After passing it to xmlStringToNode and xmlNodeToDocument the resulting document looks like this (see attached document)

Question 1: I expect the xmlns:xsi … attribute also to show up as an attribute in the document. Correct ?

I have tried to use the nsDecls parameter of the xmlNodeToDocument service without any difference in result…

The missing attribure results in the document not passing validation…

Any help is greatly appreciated.

Platform is 6.1 running on AIX 5.1.

Thanks
Tomm

Sorry missed a part, the root elememnt has the following attributes:

<DeliveryMessage xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation = “www.papinet.org/DeliveryMessageV2R10.xsd”>

any resolution on this? I’m having the same issue!

Please make sure you set the namespace declarations in the nsDecls.

Regards,