Fixing example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@141210 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Vincent Gevers 2003-09-28 16:18:14 +00:00
parent c152ca4e5f
commit 08e408b750

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.10 $ -->
<!-- $Revision: 1.11 $ -->
<reference id="ref.xml">
<title>XML parser functions</title>
<titleabbrev>XML</titleabbrev>
@ -341,14 +341,14 @@ $map_array = array(
function startElement($parser, $name, $attrs) {
global $map_array;
if ($htmltag = $map_array[$name]) {
if ($htmltag == $map_array[$name]) {
print "<$htmltag>";
}
}
function endElement($parser, $name) {
global $map_array;
if ($htmltag = $map_array[$name]) {
if ($htmltag == $map_array[$name]) {
print "</$htmltag>";
}
}