new xml class
| From: | Hans H. Anderson | Date: | Fri, 29 Sep 2000 23:17:13 +0000 |
| Subject: | new xml class | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-18138@lists.php.net to get a copy of this message | ||
I have a new xml class that uses the expat function and parses XML data
and puts them all into objects/arrays.
see it: http://www.hansanderson.com/php/xml/
For example:
Data:
<html>
<head>
<title>Hans Anderson's XML Class</title>
</head>
<body>
</body>
</html>
Run the data through my class, then access the title like this:
print $xml_html_head_title->get(0); // outputs "Hans Anderson's XML Class"
And it only takes one line to have the data parsed. It's already been a
HUGE time saver for me.
--
Hans Anderson -=- me@hansanderson.com
http://www.hansanderson.com | PHP, SQL Databases, Flash 5
Animation &
http://www.goofiness.com | Programming, Audio Production,
Brewmeister.