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 "" "