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

Xml Adapter Parser Problem

  • 1.  Xml Adapter Parser Problem

    Posted Thu July 11, 2002 10:28 AM

    Hi

    Iam getting following exception when i tried to parse the incoming XML Doc…

    "java.lang.NullPointerException:

    at com.wm.lang.schema.NodeValidator.validate(NodeValidator.java:76)"
    

    //-----the XMl Doc

    <?xml version="1.0" encoding="utf-8"?> Being a Dog Is a Full-Time Job Charles M. Schulz Snoopy Peppermint Patty 1950-10-04 extroverted beagle Peppermint Patty 1966-08-22 bold, brash and tomboyish

    //-----------------------------

    Xml Schema

    <?xml version="1.0" encoding="utf-8"?>

    <xs:schema xmlns:xs=“http://www.w3.org/2000/10/XMLSchema”>
    <xs:element name=“book”>
    xs:complexType
    xs:sequence
    <xs:element name=“title” type=“xs:string”/>
    <xs:element name=“author” type=“xs:string”/>
    <xs:element name=“character” minOccurs=“0” maxOccurs=“unbounded”>
    xs:complexType
    xs:sequence
    <xs:element name=“name” type=“xs:string”/>
    <xs:element name=“friend-of” type=“xs:string” minOccurs=“0” maxOccurs=“unbounded”/>
    <xs:element name=“since” type=“xs:date”/>
    <xs:element name=“qualification” type=“xs:string”/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute name=“isbn” type=“xs:string”/>
    </xs:complexType>
    </xs:element>
    </xs:schema>


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