File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes UnmarshalException: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "UnmarshalException:" Watch "UnmarshalException:" New topic
Author

UnmarshalException:

Prasath Premkumar
Ranch Hand

Joined: Nov 13, 2008
Posts: 43
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.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

FIXadapter2 or FIXadaptor2?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UnmarshalException: