XML and DB: Is there a need for these scripts?
[email protected] (Robert Kelly) Wed, 28 Feb 2001 09:53:08 -0700
| Newsgroups | php.pear |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected]