Subjects
Home
VOTE Move XML Commons to Xerces
Commented: (XERCESJ 589) Bug with pattern restriction on long strings
: Xerces J 2 8 1 Release on Wednesday, September 13th
: Xerces J 2 9 0 Release on Wednesday, November 22nd
Commented: (XERCESJ 1066) Restriction+choice+substitutionGroup error
Commented: (XERCESJ 1178) Error getting prefix for an attribute with no n
Updated: (XERCESJ 1244) XMLSchemaValidator does not contribute element 's
Some consideration about the xerces DOM implementation
Updated: (XERCESJ 1066) Restriction+choice+substitutionGroup error
Commented: (XERCESJ 1227) Poor performance / OutOfMemoryError for sequenc
retain exception stack traces
Updated: (XERCESJ 1193) NPE or hang when parsing using the "continue afte
Future of NekoHTML
Commented: (XERCESJ 1203) NPE in XMLDTDProcessor
DOM Level 3 APIs for Xalan J and a new Xalan release (2 7 1)
: xml commons external 1 3 04 Release on Wednesday, November 22nd
Commented: (XERCESJ 1247) Incorrect location information on SAX when usin
XInclude exceptions how to mirror Xerces J functionality into Xerces C++?
First proposal on SoC project "Add support for the StAX (JSR 173) cursor API
: xml commons resolver 1 2 Release on Wednesday, November 22nd
Typo in RangeToken java Please check
Validator features
java lang ClassCastException when adopting Node
using the org apache xerces impl xs identity package
Updated: (XERCESJ 1257) buffer overflow in UTF8Reader for characters out
Problem with ref attributes and schema validation
Updated: (XERCESJ 122) XMLSchemaValidator does not contribute element 's d
Performance problem under load Xerces with Weblogic 9 x
remove ignored memory allocation
Commented: (XERCESJ 1177) SAXXMLStreamReader doesn 't always report namesp
Commented: (XERCESJ 977) Null pointer exception during DOM parsing
Commented: (XERCESJ 1197) Code cleanup for org apache xml serialize
Commented: (XERCESJ 1201) Initial contribution for StAX Event API
Updated: (XERCESJ 1061) Regex "$ " and "^ " characters treated as special c
Commented: (XERCESJ 1199) SAXXMLStreamReader should attempt to register a
Commented: (XERCESJ 1061) Regex "$ " and "^ " characters treated as special
Updated: (XERCESJ 589) Bug with pattern restriction on long strings
StackOverflow
xerces Range unnecessarily not garbage collectable if not detached
Updated: (XERCESJ 1178) Error getting prefix for an attribute with no nam
Bug in xs:redefine
Commented: (XERCESJ 1204) Can not set XMLEntityResolver for LSParser
Updated: (XERCESJ 1253) Prototype for SoC2007 project "Add support for th
Updated: (XERCESJ 1259) Add SteamFilter Function to SoC2007 project "Add
Assigned: (XERCESJ 444) SAXException thrown by EntityResolver is reported
Google Summer of Code 2007
Xerces J and XInclude relative path issue
Assigned: (XERCESJ 206) Stack overflow when using a schema validation
Commented: (XERCESJ 1215) Restrictions involving two levels of substituti
Closed: (XERCESJ 1203) NPE in XMLDTDProcessor
non overriding equals methoda
Resolved: (XERCESJ 1079) invalid value returned for TOTALDIGITS facet in
Xerces AS3 port
Updated: (XERCESJ 325) Regular Expression; Pattern "| " clause order de
Updated: (XERCESJ 1196) Javadoc generation fails on Java SE 5 0
Closed: (XERCESJ 1202) DTD validation on XIncluded documents when the sch
Created: (XERCESJ 1124) Nonspecific schema error message
a bug in xerces
Updated: (XERCESJ 1201) Initial contribution for StAX Event API
Closed: (XERCESJ 1254) Empty uris in targetNamespace attribute not report
Links
Home
Oracle database error code
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Cannot find the declaration of element ProActiveDescriptor

Cannot find the declaration of element ProActiveDescriptor

2003-05-15       - By Doug Helton
Reply:     1     2     3     4     5     6     7  

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>&nbsp;&nbsp;&nbsp; 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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;<BR><FONT face=arial size=2>"Cannot find the
     declaration of element ProActiveDescriptor"</FONT><BR>&nbsp;<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&nbsp;
       "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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

       <DD>Email: </FONT><FONT face="Courier New, Courier"
       color=#ff0000>nigelc@(protected) </B></FONT>&nbsp; or
<FONT
       face="Courier New, Courier" color=#ff0000>corbin1@(protected)</B></FONT> -
       note changes<BR><BR>
       <DD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       Victory House
       <DD>Phone:
       +44-1293-844061&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       Manor Royal, RH10 9LU
       <DD><A
       href="http://www.sis.slb.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/"

       eudora="autourl">www.sis.slb.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       </A>Great Britain
       <DD>===================================================================
========================
       </DD></DL></BLOCKQUOTE><X-SIGSEP>
   <P></X-SIGSEP>
   <DL></DL><FONT
   face="Courier New, Courier">--<BR>=========================================
==================================================<BR>Nigel
   Corbin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   <BR>Email: </FONT><FONT face="Courier New, Courier"
   color=#ff0000><B>nigelc@(protected) </B></FONT><FONT
   face="Courier New, Courier">&nbsp; or </FONT><FONT
   face="Courier New, Courier" color=#ff0000><B>corbin1@(protected)</B></FONT>
<FONT
   face="Courier New, Courier"> - note
   changes<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   Victory House<BR>Phone:
   +44-1293-844061&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;
   Manor Royal, RH10 9LU<BR><A
   href="http://www.sis.slb.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/"

   eudora="autourl">www.sis.slb.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   </A>Great
   Britain<BR>================================================================
===========================</FONT>
 </BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>