Question about SAXParser

Discussion in 'XML' started by Bekkali Hicham, Jul 12, 2003.

  1. 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
    Bekkali Hicham, Jul 12, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Per Magnus L?vold
    Replies:
    0
    Views:
    2,014
    Per Magnus L?vold
    Nov 16, 2004
  2. SnooPac
    Replies:
    8
    Views:
    13,214
    Stanimir Stamenkov
    Jan 6, 2005
  3. hitectahir

    Speeding up Xerces SAXParser

    hitectahir, Sep 20, 2003, in forum: XML
    Replies:
    0
    Views:
    434
    hitectahir
    Sep 20, 2003
  4. User
    Replies:
    0
    Views:
    878
  5. Bobo

    Unicode and SAXParser

    Bobo, Dec 3, 2003, in forum: XML
    Replies:
    3
    Views:
    1,736
    Richard Tobin
    Dec 6, 2003
Loading...

Share This Page