Xerces2-J http://apache.org/xml/features/validation/warn-on-undeclared-elemdef?

Discussion in 'XML' started by Gerben, Sep 29, 2003.

  1. Gerben

    Gerben Guest

    I try to use
    "http://apache.org/xml/features/validation/warn-on-undeclared-elemdef":

    ---
    System.setProperty("javax.xml.parsers.SAXParserFactory",
    "org.apache.xerces.jaxp.SAXParserFactoryImpl");

    SAXParserFactory parserFactory = SAXParserFactory.newInstance();
    SAXParser parser = parserFactory.newSAXParser();
    XMLReader reader = parser.getXMLReader();


    reader.getFeature("http://apache.org/xml/features/validation/warn-on-undecla
    red-elemdef");
    ---

    but an exception is thrown:

    org.xml.sax.SAXNotRecognizedException:
    http://apache.org/xml/features/validation/warn-on-undeclared-elemdef

    other features work. Any ideas?
    Gerben, Sep 29, 2003
    #1
    1. Advertising

  2. Alexey Dmitriev, Sep 30, 2003
    #2
    1. Advertising

  3. Gerben

    Gerben Guest

    As far as i know, i am using 2.5.0. How can i be sure?

    "Alexey Dmitriev" <> wrote in message
    news:blc63g$g3$...
    > Gerben wrote:
    >
    > > I try to use
    > > "http://apache.org/xml/features/validation/warn-on-undeclared-elemdef":
    > >

    > ...
    > > but an exception is thrown:
    > >
    > > org.xml.sax.SAXNotRecognizedException:
    > > http://apache.org/xml/features/validation/warn-on-undeclared-elemdef
    > >
    > > other features work. Any ideas?
    > >
    > >

    > This is bug that was fixed (see:
    > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21845). I think If you
    > install fresh stable Xerces2-J version(2.5.0) then It's Ok!
    >
    > --
    > Alex
    >
    Gerben, Oct 2, 2003
    #3
  4. Gerben wrote:

    > As far as i know, i am using 2.5.0. How can i be sure?
    >


    As they say in Xerces2-J general FAQs
    to find out the release version of Xerces, execute the following:
    java org.apache.xerces.impl.Version
    Alexey Dmitriev, Oct 11, 2003
    #4
    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.

Share This Page