Re: Testing of XML_Tree in Packages that depend on it
| From: | Stephan Schmidt | Date: | Wed, 26 May 2004 08:18:17 +0000 |
| Subject: | Re: Testing of XML_Tree in Packages that depend on it | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-29686@lists.php.net to get a copy of this message | ||
Hi,
I would like that all packages that depend on XML_Tree are tested with the new XML_Tree 2.0RC1 release. These packages are: * XML_DTDThere seem to be problems, but I do not have the time to check, where exactly they appear. Just install XML_DTD, go to the tests directory and try: $ php test.php attributes.dtd attributes_good.xml You will get errors, and with XML_Tree 2.0b2, the XML file was valid. This happens with all XML files, somehow there seem to be be error objects in the node. The following script will reproduce the problem: <?PHP require_once 'XML/Tree.php'; $tree = &new XML_Tree('attributes_good.xml'); $nodes = $tree->getTreeFromFile(); echo "<pre>"; print_r( $nodes ); echo "</pre>"; ?> attributes_good.xml: <foo> <string att2="any" /> <string att1="any" att2="any2" /> <string att1="any" att2="any2" att3="POST" /> <string att1="any" att2="any2" att3="POST" att4="any" /> <enum en2="ext" /> <enum en2="ext" en1="ordered" /> <enum en2="prog" en1="glossary" en3="ge" /> </foo> Stephan