Cannot find the declaration of element ProActiveDescriptor 2003-05-14 - By Romain Quilici
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
<!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 5.50.4807.2300" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi all,</FONT></DIV> <DIV><FONT face=Arial size=2>I tried to use xerces-J 2 in order to validate xml files against a schema and I get the following error</FONT></DIV> <DIV> <P><FONT face=Arial size=2>Cannot find the declaration of element ProactiveDescriptor</FONT></P> <P><FONT face=Arial size=2>in my code I have :</FONT></P><B><FONT color=#7f0055 size=2> <P><FONT face=Arial>private</FONT></B></FONT><FONT face=Arial><FONT size=2> </FONT><FONT size=2>org.xml.sax.XMLReader</FONT><FONT size=2> </FONT><FONT size=2>parser;</FONT></FONT></P> <P><FONT face=Arial><FONT size=2>..........................................</FONT></FONT></P><FONT face=Arial><FONT size=2><FONT size=2> <P>parser.setFeature("http://xml.org/sax/features/validation",true);</P></FONT> <FONT size=2> <P></FONT><FONT size=2>parser.setFeature("http://apache.org/xml/features/validation/schema" ,true);</FONT></P> <P><FONT size=2>Attached are both the schema and xml file</FONT></P> <P><FONT size=2>Any ideas are appreciated</FONT></P> <P><FONT size=2>Thanks in advance </FONT></P> <P><FONT size=2>Romain</P></FONT></FONT></FONT></DIV></BODY></HTML>
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|