This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Services and the fly likes Parse error in the code generated by XmlBeans Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Parse error in the code generated by XmlBeans" Watch "Parse error in the code generated by XmlBeans" New topic
Author

Parse error in the code generated by XmlBeans

Dennis Xi
Greenhorn

Joined: Jul 25, 2007
Posts: 3
This is maybe a question asked many times. but I tried all the options available and none of them work.
Please help.

Issue:
My xsd file has a targetNameSpace defined. XmlBeans generated the classes.

When I tried to load an xml without a namespace specified, I got an exception - "The document is not a DEBMAS01@urn:sap-com ocument:sap:idoc: document element namespace mismatch expected "urn:sap-com ocument:sap:idoc" got ""
"

I do have a xsdconfig file, which looks like:

I also tried:


My test code looks like:




I appreciate your help.

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parse error in the code generated by XmlBeans
 
Similar Threads
Validating an xml with a Schema
.Net Client for Axis Web services
xmlbeans namespace issue
Add Processing Instruction to XML using XmlBeans
Unmarshalling date without timezone with jaxb