antoine 2004/06/11 15:47:23
Modified: docs/manual/OptionalTasks xmlvalidate.html
Log:
Try to explain why one needs to set the namespaces feature to true
when validating documents
PR: 29187
Revision Changes Path
1.14 +15 -0 ant/docs/manual/OptionalTasks/xmlvalidate.html
Index: xmlvalidate.html
===================================================================
RCS file: /home/cvs/ant/docs/manual/OptionalTasks/xmlvalidate.html,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- xmlvalidate.html 11 Jun 2004 15:29:27 -0000 1.13
+++ xmlvalidate.html 11 Jun 2004 22:47:23 -0000 1.14
@@ -24,6 +24,21 @@
<li><tt><property></tt> elements, containing string properties
</p>
+<p><b>Warning</b> : JAXP creates by default a non namespace aware parser.
+The <tt>"http://xml.org/sax/features/namespaces"</tt> feature is set
+by default to <tt>false</tt> by the JAXP implementation used by ant. To
validate
+a document containing namespaces,
+set the namespaces feature to <tt>true</tt> explicitly by nesting the
following element:
+<pre>
+ <attribute name="http://xml.org/sax/features/namespaces"
value="true"/>
+</pre>
+If you are using for instance a <tt>xsi:noNamespaceSchemaLocation</tt>
attribute in your XML files,
+you will need this namespace support feature.
+</p>
+<p>If you are using a parser not generated by JAXP, by using the
<tt>classname</tt> attribute of xmlvalidate, this warning
+may not apply.</p>
+
+
<h3>Parameters</h3>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]