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

XML Adapter - Parsing Operation

  • 1.  XML Adapter - Parsing Operation

    Posted Fri September 06, 2002 02:31 AM

    I want to use a XML schema with the XML Adapter 4.2 to parse a XML file. My XML schema is validated by a XML tool in the the “XML Schema” namespace

    When I want to use this schema in webMethods adapter, I have to change the namespace to
    http://www.w3.org/2000/08/XMLSchema” for the adapter to accept it.

    Then, when I choose some root elements, I have a java.lang.NullPointer exception.

    Any clue, someone ?


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 2.  RE: XML Adapter - Parsing Operation

    Posted Sat September 07, 2002 01:40 AM

    Hi,

    We faced another problem with XML adapter. We used DTD and the XML was getting validated thru XMLSpy, but the adapter was giving error that it is not valid. On analysing we realised that the xml was not really valid. Though according to dtd it has to have single instance of a node, it had 2 instances of a node. On correcting the xml as per the schema the adapter worked fine.
    This need not necessarily be true in your case but I suggest you to manually verify the xml against schema even though it has been validated by any other tool.

    Regards,
    -Vandana.


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards