cvs: peardoc /en/package/xml/xml-parser example.xml
| From: | Pierre-Alain Joye | Date: | Sat, 03 Jul 2004 14:10:45 +0000 |
| Subject: | cvs: peardoc /en/package/xml/xml-parser example.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4564@lists.php.net to get a copy of this message | ||
pajoye Sat Jul 3 10:10:45 2004 EDT
Modified files:
/peardoc/en/package/xml/xml-parser example.xml
Log:
- remove <?php ?> in this example, done by the renderer (thx Aidan)
http://cvs.php.net/diff.php/peardoc/en/package/xml/xml-parser/example.xml?r1=1.1&r2=1.2&ty=u
Index: peardoc/en/package/xml/xml-parser/example.xml
diff -u peardoc/en/package/xml/xml-parser/example.xml:1.1
peardoc/en/package/xml/xml-parser/example.xml:1.2
--- peardoc/en/package/xml/xml-parser/example.xml:1.1 Fri May 7 15:31:39 2004
+++ peardoc/en/package/xml/xml-parser/example.xml Sat Jul 3 10:10:44 2004
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="package.xml.xml-parser.example">
<refnamediv>
<refname>Example</refname>
@@ -12,7 +12,7 @@
handles start and end elements (i.e. opening and closing tags)
</para>
<programlisting role="php">
-<![CDATA[<?PHP
+<![CDATA[
require_once 'XML/Parser.php';
class myParser extends XML_Parser
@@ -52,7 +52,7 @@
$result = $p->setInputFile('xml_parser_file.xml');
$result = $p->parse();
-?>]]>
+]]>
</programlisting>
<para>
This parser will just output the names of the opening and closing