File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Exception while UNmarshalling 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 "Exception while UNmarshalling" Watch "Exception while UNmarshalling" New topic

Exception while UNmarshalling

Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
Hi ranchers

I am getting following exception while UNMarshalling amy XML string.

javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"RequestType"). Expected elements are <{}Request>

Can any one please help me on this. Below is the schema and the XML

Schema is

XML is

"Know where to find the solution and how to use it - that's the secret of success."
I agree. Here's the link:
subject: Exception while UNmarshalling
It's not a secret anymore!