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 XMLBeans parsing question 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 "XMLBeans parsing question" Watch "XMLBeans parsing question" New topic

XMLBeans parsing question

Md Fizal
Ranch Hand

Joined: Dec 23, 2002
Posts: 61
I have a XML schema which I compiled to generate the XMLBean jar file. In my Java code, I'm using this bean and trying to parse an XML instance.
Say, if my XML root tag is "AddressDetails", then I'm parsing it like this

Problem here is that, the above parse method just validates the xml file, but does not check the conformity of the XML with the schema. How do I do that?
Rashmi Banthia
Ranch Hand

Joined: Dec 22, 2003
Posts: 79
This method validates XML document based on the schema : XmlObject.validate().

(Api Docs:

I agree. Here's the link:
subject: XMLBeans parsing question
jQuery in Action, 3rd edition