Re: XML Dom Parsing
| From: | Tomas V.V.Cox | Date: | Thu, 14 Apr 2005 13:57:09 +0000 |
| Subject: | Re: XML Dom Parsing | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-37236@lists.php.net to get a copy of this message | ||
Willo van der Merwe wrote:
Hi Guys/Gals, Some advice please. I need to parse an XML result set from a server. I've been using XML_Parser and deriving a new class per Request Type. This does not work as well as expected, mostly because the XML_Parser looks for specific tags. My XML Docs have quite a bit of CData and Key/Value pairs, e.g. <entry><key><string>My Key</string><value><string>My Value</string></value></entry> which makes looking for specific tags useless. I need a DOM. I don't see any PEAR DOM classes, and I don't particularly want to rely on the user having included DOM support in his/her PHP.* *XML_Tree is our php-made DOM style class. Tomas V.V.Cox