XMLParser for PHP 1.0 review

Download
by rbytes.net on

XMLParser is a library that assists in parsing XML documents into generic PHP arrays

License: GPL (GNU General Public License)
File size: 11K
Developer: Monte Ohrt
0 stars award from rbytes.net

XMLParser is a library that assists in parsing XML documents into generic PHP arrays. It also comes with RSSParser, an extension of XMLParser that creates simple RSS-specific array structures from RSS feeds.

Requirements:
The XMLParser requires the expat XML parsing library, which can be enabled in PHP with the configure flag "--enable-xml" during compilation.

SYNOPSIS:

require('XMLParser.class.php');

$xml =& new XMLParser;

$output = $xml->parse('sample.xml');

print_r($output);

sample.xml SOURCE:

< user >
< name >John Doe< /name >
< addr >123 N 45< /addr >
< phone >555.555.5555< /phone >
< /user >

OUTPUT:

Array
(
[0] => Array
(
[name] => USER
[content] =>

[child] => Array
(
[0] => Array
(
[name] => NAME
[content] => John Doe
)

[1] => Array
(
[name] => ADDR
[content] => 123 N 45
)

[2] => Array
(
[name] => PHONE
[content] => 555.555.5555
)

)

)

)

XMLParser for PHP 1.0 keywords