File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Catching XNIExceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Catching XNIExceptions" Watch "Catching XNIExceptions" New topic
Author

Catching XNIExceptions

Suresh Kanagalingam
Ranch Hand

Joined: Aug 17, 2001
Posts: 82
Hello,
I am working on a XML validator. If the XML file is correct the program validates the data fine. If the XML file is invalid (ex: a required element is missing) 'parserConfiguration.parse' (parserConfiguration of type XMLParserConfiguration) is reporting an error, but I could not catch (in the catch section).

Can someone tell me why this is happening? I am using 'XMLGrammarBuilder.java' as the base code from Apache.

Thanks
Suresh
 
IntelliJ Java IDE
 
subject: Catching XNIExceptions
 
Threads others viewed
XML Parsing problem
Facing Problem with String replaceAll method
XML file validation with the XSD
XML file validation with the XSD
Validating xml against dtd
developer file tools