You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@locus.apache.org on 2000/06/08 20:36:48 UTC

cvs commit: xml-xerces/java/docs faq-general.xml

andyc       00/06/08 11:36:47

  Modified:    java/docs faq-general.xml
  Log:
  1) Updated "New Features".
  2) Fixed documentation bug that still referred to the SAX2 Configurable
     interface.
  
  Revision  Changes    Path
  1.7       +11 -12    xml-xerces/java/docs/faq-general.xml
  
  Index: faq-general.xml
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/docs/faq-general.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- faq-general.xml	2000/05/23 20:28:56	1.6
  +++ faq-general.xml	2000/06/08 18:36:47	1.7
  @@ -8,15 +8,11 @@
   		<a>
   			<p>Here are some of the new features in &javaparsername;:</p>
   		     <ul>
  -			     <li>Support for SAX2 alpha.</li>
  -			     <li>Support for DOM Level 2 Core, Events, Traversal, and Ranges.</li>
  -			     <li>Preliminary support for W3C XML Schema Language (validation only).</li>
  +			     <li>Support for SAX2 final.</li>
  +			     <li>Additional support for W3C XML Schema Language.</li>
   			     <li>Access to DTD information as a DOM Tree.</li>
  -			     <li>Improved Conformance.</li>
  -			     <li>Improved Performance.</li>
  -			     <li>Parser option control based on SAX2.</li>
  -			     <li>New "serialization" classes allow you output XML, HTML, and XHTML.</li>
  -			     <li>New classes implement the HTML portion of the DOM Level 1 specification.</li>
  +			<li>Inclusion of WML DOM classes.</li>
  +			<li>Support for JAXP.</li>
   		     </ul>
   	<anchor name="valid"/>
   		</a>
  @@ -25,14 +21,17 @@
   	<faq title="Validation">
   		<q>How do I turn on validation?</q>
   		<a>
  -			<p>You can turn validation on and off via the SAX2
  -			Configurable interface.  This works for both the <code>SAXParser</code>
  -			and <code>DOMParser</code> classes.<br/>
  +			<p>You can turn validation on and off via methods available
  +			on the SAX2 <code>XMLFilter</code> interface. While only the 
  +			<code>SAXParser</code> implements the <code>XMLFilter</code>
  +			interface, the methods required for turning on validation
  +			are available to both parser classes, DOM and SAX.
  +			<br/>
               The code snippet below shows how to turn validation on -- assume that <ref>parser</ref>
               is an instance of either
               <code>org.apache.xerces.parsers.SAXParser</code> or
               <code>org.apache.xerces.parsers.DOMParser</code>. <br/><br/>
  -     		<code>((Configurable)parser).setFeature("http://xml.org/sax/features/validation", true);</code>
  +     		<code>parser.setFeature("http://xml.org/sax/features/validation", true);</code>
   			</p>
   		</a>
   	</faq>