"Vito Caleandro" <[EMAIL PROTECTED]> wrote on 12/05/2006 
09:30:55 AM:

> Hi all,
> 
> in a SOAP-message validation I set the parser feature
> "honour-all-schemaLocations" of Xerces parser as follows:
> ...
>    <xmlvalidate failonerror="no" warn="yes"
> classname="org.apache.xerces.parsers.SAXParser"
> file="D:\TestsRoot\AAGC\Reports\s1.xml">
>        <classpath path="D:\JavaTools\xerces-2_8_1" 
location="xercesImpl.jar"
> />
>        <attribute name="http://xml.org/sax/features/validation";
> value="true"/>
>       <attribute name="http://apache.org/xml/features/validation/schema";
> value="true"/>
>        <attribute name="http://xml.org/sax/features/namespaces"; 
value="true"/>
>        <attribute
> name="http://apache.org/xml/features/honour-all-schemaLocations";
> value="true"/>
>          <property
> name="http://apache.org/xml/properties/schema/external-schemaLocation";
> value="http://schemas.xmlsoap.org/soap/envelope/ 
filepath...\envelope.xsd
> http://www.mynamespace.sgnaus filepath...\mySchema.xsd" />
>     </xmlvalidate>
> ...
> but I got the message:
> 
> BUILD FAILED
> D:\CanooWebTest\JobScripts\BLD_ValidaXML.xml:6: Parser
> org.apache.xerces.parsers.SAXParser doesn't recognize feature
> http://apache.org/xml/features/honour-all-schemaLocations
> 
> Total time: 0 seconds
> 
> So, the question that pops up: is a my mistake or some problem in Xerces 
?

Are you sure you don't have a much older copy of Xerces somewhere on your 
classpath like the one which came with whatever version of Ant you're 
using.

> Please, can anyone help me?
> Thanks in advance for any suggestion,
> Vito
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to