Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/xml/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/xml/tests/xml010.phpt |
--TEST-- XML parser test, attributes --SKIPIF-- <?php require_once("skipif.inc"); if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this plattform");} ?> --FILE-- <?php function start_elem($parser,$name,$attribs) { print "$name "; foreach($attribs as $key => $value) { print "$key = $value "; } print "\n"; } function end_elem() { } $xml = <<<HERE <a xmlns="http://example.com/foo" xmlns:bar="http://example.com/bar"> <bar:b foo="bar"/> <bar:c bar:nix="null" foo="bar"/> </a> HERE; $parser = xml_parser_create_ns("ISO-8859-1","@"); xml_set_element_handler($parser,'start_elem','end_elem'); xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0); xml_parse($parser, $xml); xml_parser_free($parser); ?> --EXPECT-- http://example.com/foo@a http://example.com/bar@b foo = bar http://example.com/bar@c http://example.com/bar@nix = null foo = bar
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare