skitching 2004/11/29 18:57:17
Modified: digester/src/java/org/apache/commons/digester package.html
Log:
Added information about using digester as a sax event handler.
Revision Changes Path
1.33 +12 -1
jakarta-commons/digester/src/java/org/apache/commons/digester/package.html
Index: package.html
===================================================================
RCS file:
/home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/package.html,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- package.html 7 Oct 2004 19:48:42 -0000 1.32
+++ package.html 30 Nov 2004 02:57:17 -0000 1.33
@@ -108,6 +108,17 @@
the processing rules.</li>
</ul>
+<p>Alternatively a Digester may be used as a sax event hander, as
follows:</p>
+<ul>
+<li>Create an instance of a sax parser (using the JAXP APIs or
otherwise).</li>
+<li>Set any desired configuration properties on that parser object.</li>
+<li>Create an instance of
<code>org.apache.commons.digester.Digester</code>.</li>
+<li>Optionally, push any desired initial object(s) onto the Digester's
+ <a href="#doc.Stack">object stack</a>.</li>
+<li>Register patterns and rules with the digester instance.</li>
+<li>Call parser.parse(inputSource, digester).</li>
+</ul>
+
<p>For example code, see <a href="#doc.Usage"> the usage
examples</a>, and <a href="#doc.FAQ.Examples"> the FAQ </a>. </p>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]