xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Helton" <dhel...@ideorlando.org>
Subject RE: Cannot find the declaration of element ProActiveDescriptor
Date Thu, 15 May 2003 12:52:27 GMT
Romain,
    It appears that you are missing the feature:

parser.setFeature(""http://apache.org/xml/features/nonvalidating/load-extern
al-dtd"",true);

you may also want to add this one:

parser.setFeature(""http://apache.org/xml/features/validation/schema-full-ch
ecking"",true);

Doug




  -----Original Message-----
  From: Romain Quilici [mailto:Romain.Quilici@sophia.inria.fr]
  Sent: Thursday, May 15, 2003 3:26 AM
  To: Nigel Corbin
  Cc: xerces-j-user@xml.apache.org
  Subject: Re: Cannot find the declaration of element ProActiveDescriptor


  It what I was wondering,
  but how can I know if xerces is able to get the schema, since for
validating I just add two lines of code

  parser.setFeature("http://xml.org/sax/features/validation",true);



parser.setFeature("http://apache.org/xml/features/validation/schema",true);

  Regards
  Romain

    ----- Original Message -----
    From: Nigel Corbin
    To: Romain Quilici
    Sent: Wednesday, May 14, 2003 6:07 PM
    Subject: Re: Cannot find the declaration of element ProActiveDescriptor


    Hi,

    Is xerces actually getting to the schema - this error is what happens
when it does not.

    regards

    Nigel Corbin

    At 17:45 14/05/2003 +0200, you wrote:

      Sorry for the confusion
      the message is

      "Cannot find the declaration of element ProActiveDescriptor"

      ProActiveDescriptor is the root element of the xml file, and written
in the same manner in the Schema.
      What is surprising is that my file is validated without any pb with
XMLSpy, but when I want to validate it programatically I get the error
      Regards
      Romain
        ----- Original Message -----
        From: Nigel Corbin
        To: xerces-j-user@xml.apache.org ; Romain Quilici
        Sent: Wednesday, May 14, 2003 5:32 PM
        Subject: Re: Cannot find the declaration of element
ProActiveDescriptor


        Hi,


        How is "ProactiveDescriptor" spelt in the schema - do I see
"ProActiveDescriptor" and is that case sensitive?


        cheers


        Nigel Corbin


        At 17:25 14/05/2003 +0200, you wrote:
          Hi all,
          I tried to use xerces-J 2 in order to validate xml files against a
schema and I get the following error


          Cannot find the declaration of element ProactiveDescriptor
          in my code I have :
          private org.xml.sax.XMLReader parser;
          ..........................................


          parser.setFeature("http://xml.org/sax/features/validation",true);



parser.setFeature("http://apache.org/xml/features/validation/schema",true);


          Attached are both the schema and xml file


          Any ideas are appreciated


          Thanks in advance


          Romain


          ------------------------------------------------------------------
---
          To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
          For additional commands, e-mail: xerces-j-user-help@xml.apache.org
        --

============================================================================
===============
        Nigel Corbin
        Email: nigelc@crawley.oilfield.slb.com   or corbin1@slb.com - note
changes


                                                          Victory House
        Phone: +44-1293-844061                            Manor Royal, RH10
9LU
        www.sis.slb.com                                 Great Britain

============================================================================
===============

    --

============================================================================
===============
    Nigel Corbin
    Email: nigelc@crawley.oilfield.slb.com   or corbin1@slb.com - note
changes

                                                      Victory House
    Phone: +44-1293-844061                            Manor Royal, RH10 9LU
    www.sis.slb.com                                  Great Britain

============================================================================
===============

Mime
View raw message