You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Jeff Orris <jo...@aessuccess.org> on 2002/02/25 16:11:52 UTC

Dynamic Validation Using a Schema

I'm trying to validate an XML document against a schema using the XML4J
3.2.1 DOMParser.  When I set the "http://xml.org/sax/features/validation"
feature to true, the validation works well.  But when I set the
"http://apache.org/xml/features/validation/dynamic" to true (and leave the
normal validation feature default to false), no validation occurs.  The
root element in my XML document appears as follows:

<CommonRecord xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns="http://www.ed.gov/sfa/COD"
              xmlns:cod="http://www.ed.gov/sfa/COD"
              xsi:schemaLocation="http://www.ed.gov/sfa/COD
http://ifap.ed.gov/cod/attachments/ComRecord1_0c.xsd">

Isn't the presence of the xsi:schemaLocation attribute enough to trigger
dynamic validation?

Jeff


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org