You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by sa...@apache.org on 2002/07/04 19:56:02 UTC
cvs commit: xml-xerces/java/docs faq-write.xml
sandygao 2002/07/04 10:56:02
Modified: java/docs faq-write.xml
Log:
Fixing the pull-parsing FAQ:
- typo "to to". should be a single "to".
- update "continueParse" using the return value of config.parse().
Revision Changes Path
1.18 +4 -3 xml-xerces/java/docs/faq-write.xml
Index: faq-write.xml
===================================================================
RCS file: /home/cvs/xml-xerces/java/docs/faq-write.xml,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- faq-write.xml 20 Jun 2002 17:49:43 -0000 1.17
+++ faq-write.xml 4 Jul 2002 17:56:01 -0000 1.18
@@ -420,11 +420,12 @@
SAXParser parser = new SAXParser(config);
config.setInputSource(input);
parser.reset();
- while (continueParse)
- config.parse(false);
+ while (continueParse) {
+ continueParse = continueParse && config.parse(false);
+ }
}</source>
<p>
- In the above example, a SAXParser is used to to pull-parse an
+ In the above example, a SAXParser is used to pull-parse an
XMLInputSource. DOMParser can be used in a similar way. A flag
<code>continueParse</code> is used to indicate whether to continue
parsing the document. The application can stop the parsing by
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org