Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Question about SAXParser

Reply
Thread Tools

Question about SAXParser

 
 
Bekkali Hicham
Guest
Posts: n/a
 
      07-12-2003
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
saxparser ignore <!doctype> line SnooPac Java 8 01-06-2005 03:16 PM
Problems with SAX parser in Java (SAX2 driver class javax.xml.parsers.SAXParser found but cannot be loaded) Per Magnus L?vold Java 0 11-16-2004 04:02 PM
Print XML parsing to JspWriter (out) Class org.xml.sax.helpers.NewInstance can not access a member of class javax.xml.parsers.SAXParser with modifiers "protected" Per Magnus L?vold Java 0 11-15-2004 02:27 PM
SAXParser and preserving special characters User XML 0 10-31-2003 07:01 AM
Speeding up Xerces SAXParser hitectahir XML 0 09-20-2003 12:59 PM



Advertisments