cvs: peardoc /en/package/xml/xml-parser modes.xml

From: Date: Fri, 01 Dec 2006 16:50:50 +0000
Subject: cvs: peardoc /en/package/xml/xml-parser modes.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8962@lists.php.net to get a copy of this message
schst Fri Dec 1 16:50:50 2006 UTC Modified files: /peardoc/en/package/xml/xml-parser modes.xml Log: Updated documentation reflecting changes in XML_Parser 1.2.8 http://cvs.php.net/viewvc.cgi/peardoc/en/package/xml/xml-parser/modes.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/xml/xml-parser/modes.xml diff -u peardoc/en/package/xml/xml-parser/modes.xml:1.3 peardoc/en/package/xml/xml-parser/modes.xml:1.4 --- peardoc/en/package/xml/xml-parser/modes.xml:1.3 Wed Jun 1 14:22:42 2005 +++ peardoc/en/package/xml/xml-parser/modes.xml Fri Dec 1 16:50:50 2006 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.xml.xml-parser.modes"> <refnamediv> <refname>Modes</refname> @@ -21,7 +21,7 @@ In the &apos;event&apos; mode, XML_Parser will always call the methods <function>startHandler</function> and <function>endHandler</function>, independent of the tag name. In these methods you'll have to check - for tha tagname which, is passed as the second parameter and decide + for tha tagname which, is passed as the second parameter and decide what you need to do. In most cases, this is done with a switch/case statement. </para> @@ -40,8 +40,15 @@ element handler using a traling underscore). </para> <para> + As XML tags may contain chars like &quot;.&quot;, &quot;:&quot; and &quot;-&quot; and + those chars are not allowed in PHP function names, XML_Parser will replace them with &quot;_&quot; + when building the name of the callback function. + </para> + <para> If a method does not exist, XML_Parser will skip the tag without - handling the element. + handling the element, unless you implemented the methods + <function>xmltag</function> and <function>xmltag_</function>, which will + be used as fallback methods. </para> </refsect1> @@ -85,5 +92,5 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +-->

« previous php.pear.doc (#8962) next »