Cannot find the declaration of element ProActiveDescriptor 2003-05-15 - By Doug Helton
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@(protected)] Sent: Thursday, May 15, 2003 3:26 AM To: Nigel Corbin Cc: xerces-j-user@(protected) 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@(protected) ; 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@(protected) For additional commands, e-mail: xerces-j-user-help@(protected) --
============================================================================ =============== Nigel Corbin Email: nigelc@(protected) or corbin1@(protected) - note changes
Victory House Phone: +44-1293-844061 Manor Royal, RH10 9LU www.sis.slb.com Great Britain
============================================================================ ===============
--
============================================================================ =============== Nigel Corbin Email: nigelc@(protected) or corbin1@(protected) - note changes
Victory House Phone: +44-1293-844061 Manor Royal, RH10 9LU www.sis.slb.com Great Britain
============================================================================ ===============
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1141" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><SPAN class=809194912-15052003><FONT face=Arial color=#0000ff size=2>Romain,</FONT></SPAN></DIV> <DIV><SPAN class=809194912-15052003><FONT face=Arial color=#0000ff size=2> It appears that you are missing the feature:</FONT></SPAN></DIV> <DIV><SPAN class=809194912-15052003><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=809194912-15052003><FONT face=Arial color=#0000ff size=2><FONT face="Times New Roman" color=#000000 size=3>parser.setFeature("<FONT face=Arial color=#0000ff size=2>"</FONT><A href="http://apache.org/xml/features/nonvalidating/load-external-dtd"><FONT face=Arial size=2><A href='http://apache.org/xml/features/nonvalidating/load-external-dtd"",true' >http://apache.org/xml/features/nonvalidating/load-external-dtd</FONT></A><FONT face=Arial color=#0000ff size=2>"</FONT></FONT><FONT face="Times New Roman" color=#000000 size=3>",true</A>);</FONT></FONT></SPAN></DIV> <DIV> </DIV> <DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2>y<SPAN class=809194912-15052003>ou may also want to add this one:</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=809194912-15052003></SPAN></FONT></FONT></FONT> </DIV> <DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=809194912-15052003> <DIV><SPAN class=809194912-15052003><FONT face=Arial color=#0000ff size=2><FONT face="Times New Roman" color=#000000 size=3>parser.setFeature("<FONT face=Arial color=#0000ff size=2>"</FONT><A href="http://apache.org/xml/features/nonvalidating/load-external-dtd"><FONT face=Arial size=2><A href='http://apache.org/xml/features/validation/schema-full-checking"",true' >http://apache.org/xml/features/validation/schema-full-checking</FONT><FONT face=Arial color=#0000ff size=2>"</FONT></FONT><FONT face="Times New Roman" color=#000000 size=3>",true</A></A>);</FONT></FONT></SPAN></DIV> <DIV><SPAN class=809194912-15052003><FONT face="Times New Roman" color=#000000 size=3></FONT></SPAN> </DIV> <DIV><SPAN class=809194912-15052003><FONT face="Times New Roman" color=#000000 size=3>Doug</FONT></SPAN></DIV></SPAN></FONT></FONT></FONT><SPAN class=809194912-15052003></DIV> <DIV><BR></DIV> <DIV><FONT face=Arial><BR><FONT color=#0000ff size=2></FONT></FONT></DIV></SPAN> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Romain Quilici [mailto:Romain.Quilici@(protected)]<BR><B>Sent:</B> Thursday, May 15, 2003 3:26 AM<BR><B>To:</B> Nigel Corbin<BR><B>Cc:</B> xerces-j-user@(protected)<BR><B>Subject:</B> Re: Cannot find the declaration of element ProActiveDescriptor<BR><BR></FONT></DIV> <DIV><FONT face=Arial size=2>It what I was wondering,</FONT></DIV> <DIV><FONT face=Arial size=2>but how can I know if xerces is able to get the schema, since for validating I just add two lines of code</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV> <DD>parser.setFeature("<A href="http://xml.org/sax/features/validation" eudora="autourl">http://xml.org/sax/features/validation</A>",true);<BR><BR> <DD>parser.setFeature("<A href='http://apache.org/xml/features/validation/schema",true' eudora="autourl">http://apache.org/xml/features/validation/schema",true</A>); <DD> </DD></DIV> <DIV><FONT face=Arial size=2>Regards</FONT></DIV> <DIV><FONT face=Arial size=2>Romain</FONT><BR></DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:< /B> <A title=corbin1@(protected) href="mailto:corbin1@(protected)">Nigel Corbin</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=Romain.Quilici@(protected) href="mailto:Romain.Quilici@(protected)">Romain Quilici</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, May 14, 2003 6:07 PM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: Cannot find the declaration of element ProActiveDescriptor</DIV> <DIV><BR></DIV>Hi,<BR><BR>Is xerces actually getting to the schema - this error is what happens when it does not. <BR><BR>regards<BR><BR>Nigel Corbin<BR><BR>At 17:45 14/05/2003 +0200, you wrote:<BR> <BLOCKQUOTE class=cite cite="" type="cite"><FONT face=arial size=2>Sorry for the confusion</FONT><BR><FONT face=arial size=2>the message is</FONT><BR> <BR><FONT face=arial size=2>"Cannot find the declaration of element ProActiveDescriptor"</FONT><BR> <BR><FONT face=arial size=2>ProActiveDescriptor is the root element of the xml file , and written in the same manner in the Schema.</FONT><BR><FONT face=arial size=2>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</FONT><BR><FONT face=arial size=2>Regards</FONT><BR><FONT face =arial size=2>Romain</FONT> <DL> <DD>----- Original Message ----- <DD>From:</B> <A href="mailto:corbin1@(protected)">Nigel Corbin</A> <DD>To:</B> <A href="mailto:xerces-j-user@(protected)">xerces-j-user@(protected) </A> ; <A href="mailto:Romain.Quilici@(protected)">Romain Quilici</A> <DD>Sent:</B> Wednesday, May 14, 2003 5:32 PM <DD>Subject:</B> Re: Cannot find the declaration of element ProActiveDescriptor<BR><BR> <DD>Hi,<BR><BR> <DD>How is "ProactiveDescriptor" spelt in the schema - do I see "ProActiveDescriptor" and is that case sensitive?<BR><BR> <DD>cheers<BR><BR> <DD>Nigel Corbin<BR><BR> <DD>At 17:25 14/05/2003 +0200, you wrote: <BLOCKQUOTE class=cite cite="" type="cite"><FONT face=arial size=2> <DD>Hi all,</FONT><FONT face=arial size=2> <DD>I tried to use xerces-J 2 in order to validate xml files against a schema and I get the following error</FONT><BR><BR><FONT face=arial size=2> <DD>Cannot find the declaration of element ProactiveDescriptor</FONT><FONT face=arial size=2> <DD>in my code I have :</FONT><FONT color=#7f0055 size=2></FONT><FONT face=arial color=#7f0055 size=2> <DD>private</B></FONT> org.xml.sax.XMLReader parser;<FONT face=arial size=2> <DD>..........................................<BR><BR> <DD>parser.setFeature("<A href="http://xml.org/sax/features/validation" eudora="autourl">http://xml.org/sax/features/validation</A>",true); <BR><BR> <DD>parser.setFeature("<A href="http://apache.org/xml/features/validation/schema" eudora="autourl">http://apache.org/xml/features/validation/schema</A> ",true);<BR><BR> <DD>Attached are both the schema and xml file<BR><BR> <DD>Any ideas are appreciated<BR><BR> <DD>Thanks in advance <BR><BR> <DD>Romain</FONT><BR><BR> <DD>----------------------------------------------------------------- ----
<DD>To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) <DD>For additional commands, e-mail: xerces-j-user-help@(protected)</DD></BLOCKQUOTE><FONT face="Courier New, Courier"> <DD>-- <DD>=================================================================== ========================
<DD>Nigel Corbin   ;
<DD>Email: </FONT><FONT face="Courier New, Courier" color=#ff0000>nigelc@(protected) </B></FONT> or <FONT face="Courier New, Courier" color=#ff0000>corbin1@(protected)</B></FONT> - note changes<BR><BR> <DD> Victory House <DD>Phone: +44-1293-844061 Manor Royal, RH10 9LU <DD><A href="http://www.sis.slb.com /" eudora="autourl">www.sis.slb.com </A>Great Britain <DD>=================================================================== ======================== </DD></DL></BLOCKQUOTE><X-SIGSEP> <P></X-SIGSEP> <DL></DL><FONT face="Courier New, Courier">--<BR>========================================= ==================================================<BR>Nigel Corbin <BR>Email: </FONT><FONT face="Courier New, Courier" color=#ff0000><B>nigelc@(protected) </B></FONT><FONT face="Courier New, Courier"> or </FONT><FONT face="Courier New, Courier" color=#ff0000><B>corbin1@(protected)</B></FONT> <FONT face="Courier New, Courier"> - note changes<BR><BR> Victory House<BR>Phone: +44-1293-844061 Manor Royal, RH10 9LU<BR><A href="http://www.sis.slb.com   ; /" eudora="autourl">www.sis.slb.com </A>Great Britain<BR>================================================================ ===========================</FONT> </BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
|
|