I’m running saxonb9-1-0-5n and having problems converting a System.Xml.XmlDocument -> XdmNode via the DocumentBuilder.Wrap method. The code in question is:

 

                  XdmNode inputXML = processor.NewDocumentBuilder().Wrap(input);

 

Examining the “input” (XmlDocument) shows an XML doc with the following top level element:

 

<PRRRevisionRequest DatePosted="2/4/2008 12:00:00 AM" Number="754" Title="Resource Settlement Due To Forced Transmission Outage" IsDirty="false" IsNew="false" Tombstone="false" xmlns="gptg:PMSA:gptg.net">

 

Examining the inputXML XdmNode after the call to Wrap shows an XdmNode with the following top level element:

 

<PRRRevisionRequest DatePosted="2/4/2008 12:00:00 AM" Number="754"

                    Title="Resource Settlement Due To Forced Transmission Outage"

                    IsDirty="false"

                    IsNew="false"

                    Tombstone="false">

 

So, the question is, WHAT THE HECK HAPPENED TO THE DEFAULT NAMESPACE SPEC? Obviously this is causing problems in the subsequent XSL transform processing…

 

Please advise,

 Bill