2
Test xml_parse_into_struct() function : variation
5
if (!extension_loaded("xml")) {
6
print "skip - XML extension not loaded";
11
/* Prototype : proto int xml_parse_into_struct(resource parser, string data, array &struct, array &index)
12
* Description: Parsing a XML document
13
* Source code: ext/xml/xml.c
17
echo "*** Testing xml_parse_into_struct() : variation ***\n";
19
$simple = "<main><para><note>simple note</note></para><para><note>simple note</note></para></main>";
20
$p = xml_parser_create();
21
xml_parse_into_struct($p, $simple, $vals, $index);
25
echo "\nVals array\n";
32
*** Testing xml_parse_into_struct() : variation ***
80
[value] => simple note
102
[value] => simple note
b'\\ No newline at end of file'