Validating large xml files
843834Sep 3 2009 — edited Sep 6 2009In our application we have a requirement to validate large xml file (around 40 mb) against a simple schema file.
I have tried all options(Sax and Dom) mentioned in below article on sun site -
http://java.sun.com/developer/EJTechTips/2005/tt1025.html
but with all of these approches the validation process just hangs for hours.
Even i am running my test case for this validation by allocating 1 GB memory to test case, on latest processor(core-2 duo) but still it just hangs and returns after a long duration.
If needed i can provide sample test case, schema file and xml file.
Please help me to know if its a problem with JAXP 1.3 Schema Validation Framework (SVF) to handle large files, or if there is any other efficient way of validating large xml file.
Regards
Rahul