From 713effc0b11d1a57be5a1ae0008af22ebfaf956a Mon Sep 17 00:00:00 2001 From: Antoine Levy-Lambert Date: Fri, 11 Jun 2004 22:47:23 +0000 Subject: [PATCH] Try to explain why one needs to set the namespaces feature to true when validating documents PR: 29187 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276569 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/OptionalTasks/xmlvalidate.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/manual/OptionalTasks/xmlvalidate.html b/docs/manual/OptionalTasks/xmlvalidate.html index 5de26528d..0b0dda851 100644 --- a/docs/manual/OptionalTasks/xmlvalidate.html +++ b/docs/manual/OptionalTasks/xmlvalidate.html @@ -24,6 +24,21 @@ SAX1/2 parser if needed.

  • <property> elements, containing string properties

    +

    Warning : JAXP creates by default a non namespace aware parser. +The "http://xml.org/sax/features/namespaces" feature is set +by default to false by the JAXP implementation used by ant. To validate +a document containing namespaces, +set the namespaces feature to true explicitly by nesting the following element: +

    +  <attribute name="http://xml.org/sax/features/namespaces" value="true"/>
    +
    +If you are using for instance a xsi:noNamespaceSchemaLocation attribute in your XML files, +you will need this namespace support feature. +

    +

    If you are using a parser not generated by JAXP, by using the classname attribute of xmlvalidate, this warning +may not apply.

    + +

    Parameters