IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

XML namespace info lost when using xmlNodeToDocument

  • 1.  XML namespace info lost when using xmlNodeToDocument

    Posted Wed May 12, 2004 11:42 AM

    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


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: XML namespace info lost when using xmlNodeToDocument

    Posted Wed May 12, 2004 12:40 PM

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

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


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: XML namespace info lost when using xmlNodeToDocument

    Posted Fri April 15, 2005 02:10 PM

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


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 4.  RE: XML namespace info lost when using xmlNodeToDocument

    Posted Fri April 15, 2005 03:07 PM

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

    Regards,


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods