ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14641] - Prototypical <schemavalid> task that uses Xerces-J 2.2.1 to validate an XML file against it's Schema (XSD)
Date Mon, 18 Nov 2002 16:40:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14641>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14641

Prototypical <schemavalid> task that uses Xerces-J 2.2.1 to validate an XML file against
it's Schema (XSD)





------- Additional Comments From ddevienne@lgc.com  2002-11-18 16:40 -------
Note that the XML document/file must declare the Schema-instance namespace, and 
specify the location of the Schema using either xsi:noNamespaceSchemaLocation 
or xsi:schemaLocation for the validation to actually take place (as shown 
below). I have no clue whether validation for can be forced to happen without 
these declarations... If anybody knows how to do that, please let me know. --DD

<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="root.xsd"
      root-attributes... />

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message