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 and (possible)threading problem 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 and (possible)threading problem" Watch "XMLBeans parsing and (possible)threading problem" New topic

XMLBeans parsing and (possible)threading problem

jan dressen
Ranch Hand

Joined: Oct 25, 2007
Posts: 47

I'm trying to parse and validte an existing XML-file by parsing it and then validating it through XmlOptions. this works perfectly until I try to do the same thing from a different thread. Then I suddenly get a "cvc-elt.1" error. This error states that the xml is missing some kind of declaration in the schema file. but this is not the case because the same code works perfectly in a single-threaded environment. Can somebody explain what causes this error and how to solve it?

thank you
I agree. Here's the link:
subject: XMLBeans parsing and (possible)threading problem
jQuery in Action, 3rd edition