Linux evo.fastest-server.com 5.14.0-284.1101.el9.tuxcare.11.els11.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 14 13:30:35 UTC 2026 x86_64
LiteSpeed
Server IP : 103.249.112.113 & Your IP : 216.73.217.135
Domains : 988 Domain
User : tanishks
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
cpanel-php84-xml-parser /
examples /
Delete
Unzip
Name
Size
Permission
Date
Action
xml_parser_file.php
1.03
KB
-rw-r--r--
2025-06-06 23:40
xml_parser_file.xml
87
B
-rw-r--r--
2025-06-06 23:40
xml_parser_funcmode.php
875
B
-rw-r--r--
2025-06-06 23:40
xml_parser_handler.php
1022
B
-rw-r--r--
2025-06-06 23:40
xml_parser_simple1.php
1.06
KB
-rw-r--r--
2025-06-06 23:40
xml_parser_simple1.xml
207
B
-rw-r--r--
2025-06-06 23:40
xml_parser_simple2.php
1.27
KB
-rw-r--r--
2025-06-06 23:40
xml_parser_simple2.xml
152
B
-rw-r--r--
2025-06-06 23:40
xml_parser_simple_handler.php
1.24
KB
-rw-r--r--
2025-06-06 23:40
Save
Rename
<?PHP /** * Example for the func-mode * * @author Stephan Schmidt <schst@php-tools.net> * @package XML_Parser * @subpackage Examples */ /** * require the parser */ require_once '../Parser.php'; class myParser extends XML_Parser { function xmltag_foo_bar($xp, $name, $attribs) { print "handle start foo-bar\n"; } function xmltag_foo_bar_($xp, $name) { print "handle end foo-bar\n"; } function xmltag_foo($xp, $name) { print "handle start foo\n"; } function xmltag_foo_($xp, $name) { print "handle end foo\n"; } } $p = &new myParser(null, 'func'); $result = $p->setInputString('<foo><foo-bar/></foo>'); if (PEAR::isError($result)) { print $result->getMessage() . "\n"; } $result = $p->parse(); if (PEAR::isError($result)) { print $result->getMessage() . "\n"; } ?>