XML and DB: Is there a need for these scripts?
| From: | Robert Kelly | Date: | Wed, 28 Feb 2001 16:53:08 +0000 |
| Subject: | XML and DB: Is there a need for these scripts? | ||
| Groups: | php.pear | ||
| Request: | Send a blank email to php-pear+get-1510@lists.php.net to get a copy of this message | ||
XML_Structor class, extends XML_Parser: instead of parsing to output,
it uses "xml_parse_into_struct" placing the index and values in attributes.
Also contains a getRelative and getChildren function for a value passed
to them, and retrieveData, which returns an associative array. (Largely
based on Stig's code).
dbConnector Class: Parse_into_Struct a db.xml document retrieving
DSN's. Excellent if you have a ton of DB's you need access to, and
don't want to have to hunt down usernames and passwords. Currently
DSN code is written for mysql and oci8. I will provide a sample db.xml.
Eventually code that parses tsnames.ora file and other similar files
adding the XML to the db.xml file.
Do you want? I'd love feedback on them.
Bob Kelly
rkelly@insight.com