Hi Nigel,
    It sounds like your parser is not finding the schema if that is the error you are getting,  When I validated it there were a few identity constraint violations in the file.  It may be you're schema that is breaking these constraints.  Here are the errors I got:
 
at line 7 Identity Constraint error:  identity constraint "[EMAIL PROTECTED]" has a
 keyref which refers to a key or unique that is out of scope.
at line 7 Identity Constraint error:  identity constraint "[EMAIL PROTECTED]" has a
 keyref which refers to a key or unique that is out of scope.
at line 45 Identity Constraint error:  identity constraint "[EMAIL PROTECTED]" has
a keyref which refers to a key or unique that is out of scope.
at line 45 Identity Constraint error:  identity constraint "[EMAIL PROTECTED]" has a
 keyref which refers to a key or unique that is out of scope.
at line 45 Identity Constraint error:  identity constraint "[EMAIL PROTECTED]" has a
 keyref which refers to a key or unique that is out of scope.
at line 45 Identity Constraint error:  identity constraint "[EMAIL PROTECTED]" has a
keyref which refers to a key or unique that is out of scope.
at line 52 Identity Constraint error:  identity constraint "[EMAIL PROTECTED]" has a
 keyref which refers to a key or unique that is out of scope.
at line 52 Identity Constraint error:  identity constraint "[EMAIL PROTECTED]" has a
 keyref which refers to a key or unique that is out of scope.
at line 52 Identity Constraint error:  identity constraint "[EMAIL PROTECTED]" has a
 keyref which refers to a key or unique that is out of scope.
at line 52 Identity Constraint error:  identity constraint "[EMAIL PROTECTED]" has a
 keyref which refers to a key or unique that is out of scope.
at line 52 Identity Constraint error:  identity constraint "[EMAIL PROTECTED]" has a
 keyref which refers to a key or unique that is out of scope.
INVALID_FILE
 
sorry don't have time to look for the reference that is out of scope,  good luck.
 
Doug Helton
-----Original Message-----
From: Romain Quilici [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 14, 2003 11:45 AM
To: Nigel Corbin; [EMAIL PROTECTED]
Subject: Re: Cannot find the declaration of element ProActiveDescriptor

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 -----
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
===========================================================================================
Nigel Corbin                                    
Email:
[EMAIL PROTECTED]   or [EMAIL PROTECTED] - note changes

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

Reply via email to