Author: mrglavas
Date: Sun Feb 26 13:46:25 2006
New Revision: 381172

URL: http://svn.apache.org/viewcvs?rev=381172&view=rev
Log:
Updating FAQ on DOM revalidation. In memory validation against a DTD is 
supported.
The schema-type must be set to "http://www.w3.org/2001/XMLSchema"; in order to 
enable
XML schema validation.

Modified:
    xerces/java/trunk/docs/faq-dom.xml

Modified: xerces/java/trunk/docs/faq-dom.xml
URL: 
http://svn.apache.org/viewcvs/xerces/java/trunk/docs/faq-dom.xml?rev=381172&r1=381171&r2=381172&view=diff
==============================================================================
--- xerces/java/trunk/docs/faq-dom.xml (original)
+++ xerces/java/trunk/docs/faq-dom.xml Sun Feb 26 13:46:25 2006
@@ -1,6 +1,6 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <!--
- * Copyright 2002-2005 The Apache Software Foundation.
+ * Copyright 2002-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -269,7 +269,7 @@
                        DOM revalidation is supported via W3C DOM Level 3 Core
                        <em>Document.normalizeDocument()</em>.
                </p>
-               <note>This release only supports revalidation against XML 
Schemas. Revalidation against DTDs or any other schema type is not 
implemented.</note>
+               <note>This release only supports revalidation against XML 
Schemas and DTDs. Revalidation against other schema types is not 
implemented.</note>
 
                <p>To revalidate the document you need:</p>
                <ul>
@@ -320,6 +320,7 @@
 Document document = builder.parseURI("data/personal-schema.xml");
 DOMConfiguration config = document.getDomConfig();
 config.setParameter("error-handler",new MyErrorHandler());
+config.setParameter("schema-type", "http://www.w3.org/2001/XMLSchema";);
 config.setParameter("validate", Boolean.TRUE);
 document.normalizeDocument();</source>
 



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

Reply via email to