Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Parse error in the code generated by XmlBeans

 
Dennis Xi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
We don't have time for this. We've gotta save the moon! Or check this out:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!