Question about SAXParser

B

Bekkali Hicham

Hi,
i am using WSAD 4.0.2 java perspective to devellop a XMLEditor (read only),
i use the SAX api for this purpose,
everything works fine, i succed to create a JTree representation of an xml
file, but when i choose to open a
non-well-formed xml file,i receive the event
DefaultHandler.fatalError(SAXParseException),
but when i want to open an invalide-xml file (with an incorporated dtd) the
parser don't send any information, evenif i have overide the
DefaultHandler.error(SAXParseException), that last one is not called.
i have made some search, and notice that parser.isValidating() return false,
it means that the parser i use don't check
the validity of an xml file, it checks only the well-formedness.
How can resolve this probleme, have to use a tiers xml-parser (xerces), if
yes how to install and use it ?
is the parser delivred by ibm (trough WSAD product )is an "validating
parser" or not?
thanks for your help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top