cvs: peardoc /en/package/xml/xml-parser modes.xml
| From: | Stephan Schmidt | Date: | Sun, 16 May 2004 16:32:43 +0000 |
| Subject: | cvs: peardoc /en/package/xml/xml-parser modes.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4005@lists.php.net to get a copy of this message | ||
schst Sun May 16 12:32:43 2004 EDT
Modified files:
/peardoc/en/package/xml/xml-parser modes.xml
Log:
fixed typo, added additional textual example
http://cvs.php.net/diff.php/peardoc/en/package/xml/xml-parser/modes.xml?r1=1.1&r2=1.2&ty=u
Index: peardoc/en/package/xml/xml-parser/modes.xml
diff -u peardoc/en/package/xml/xml-parser/modes.xml:1.1
peardoc/en/package/xml/xml-parser/modes.xml:1.2
--- peardoc/en/package/xml/xml-parser/modes.xml:1.1 Sat May 15 19:13:53 2004
+++ peardoc/en/package/xml/xml-parser/modes.xml Sun May 16 12:32:43 2004
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="package.xml.xml-parser.modes">
<refnamediv>
<refname>Modes</refname>
@@ -30,8 +30,12 @@
based on the name of the tag. This allows you to dispatch different
tags to different methods. The methods to handle the start tag have
to be called <function>xmltag_[tagname]</function>, where [tagname]
- will has to be substituted by the name of the element that you
- wish to process. Methods to handle closing tags have to be named
+ has to be substituted by the name of the element that you
+ wish to process. That means if you wish to write a method to process all opening
+ <title> tags, it has to be called xml_tag_title.
+ </para>
+ <para>
+ Methods to handle closing tags have to be named
<function>xmltag_[tagname]_</function> (distinguishes from the start
element handler using a traling underscore).
</para>