This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Error Validating huge XSD with XML in a Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Error Validating huge XSD with XML in a Servlet" Watch "Error Validating huge XSD with XML in a Servlet" New topic
Author

Error Validating huge XSD with XML in a Servlet

Kumar Suresh
Greenhorn

Joined: Aug 10, 2011
Posts: 3
I have a servlet, which was initially getting request ( XML Message) and writing into a file on a Server. This was perfectly fine and it handled any number of messages per second. The problem started when I started to validate the XML message using an Huge XSD. using the Validator function.

I am getting the error "src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component" .. I am getting this error only 3 out of 10 times.. the other 7 times its fine..

I am trying to submit a request pretty fast like may be 10 times within 2 seconds..

In the code below, I might be able to try converting the "in" parameter to bytes and back using it again in source, other forums have suggested to use the in parameter directly , but thats not where I got stuck..

Please suggest if there is any threading issue involved here or anything like that.

The DTD for the xsd can be found here http://xml.cXML.org/schemas/cXML/1.1.010/cXML.dtd

Thanks

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

One of the posts on those "other forums" is here: http://forums.oracle.com/forums/thread.jspa?threadID=2265839&tstart=0.

Kumar, please read BeForthrightWhenCrossPostingToOtherSites, and welcome to the Ranch!
Kumar Suresh
Greenhorn

Joined: Aug 10, 2011
Posts: 3
This is resolved

you can check here for the solution

http://forums.oracle.com/forums/thread.jspa?threadID=2265839&start=0&tstart=0

Thanks all ..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error Validating huge XSD with XML in a Servlet
 
Similar Threads
unable to remove spaces in xml
unbale to view xml file in browser
save a xml file using java
problem in deleting the file
Help regarding how to check the element entered is equal or not in xml file