This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XMLBeans parsing and (possible)threading problem" Watch "XMLBeans parsing and (possible)threading problem" New topic
Author

XMLBeans parsing and (possible)threading problem

jan dressen
Ranch Hand

Joined: Oct 25, 2007
Posts: 47
Hello,

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: XMLBeans parsing and (possible)threading problem
 
It's not a secret anymore!