posted 16 years ago
hi,
I validated my schema & xml in JAXP. its validated fine. I created the object model in JAXB using xjc command & wn i try to run run the program in throws
javax.xml.bind.UnmarshalException: unexpected element{} exception.
It is complaining abt FIXadapter2 element which is defined in the schema as
<xsd:element name="FIXadaptor2">
<xsd:complexType>
<xsd:annotation>
<xsd:appinfo>
<jxb:class name="FIXadaptor2"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
.....
.....
</FIXadapter2>
the exceptin is :
javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"FIXadaptor2"). Expected elements are (none)
Can anyone please help me???
Thanks in advance.