webMethods

webMethods

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.

 View Only
Expand all | Collapse all

Losing xml namespace attribute when using xmlNodeToDocument

  • 1.  Losing xml namespace attribute when using xmlNodeToDocument

    Posted Wed May 12, 2004 08:03 AM

    Hi,

    I have an xml string with namespace declarations in the root tag:

    When I send this through the services xmlStringToNode and xmlNodeToDocument to convert into a document the namesapce attribute xmlns:xsi = “http://www.w3.org/2001/XMLSchema-instance” is not listed as an atrribute in the document i.e. lost.

    Looks something like this in Developer:

    document
    | @version 1.0
    | @encoding UTF-8

    • DeliveryMessage
      | @xsi:noNamespaceSchemaLocation papinet
      | @DeliveryMessageType InitialShipmentAdvice

    Since the namespace declaration for xsi is missing the document does not
    pass validation…

    Greatful for any help in this matter…

    We are using WM 6.1 on AIX 5.1.

    best regards,
    Tomm


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Losing xml namespace attribute when using xmlNodeToDocument

    Posted Thu July 05, 2007 05:40 PM

    I am having the same problem as well.


    #webMethods
    #Integration-Server-and-ESB