Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.0RC3

Bug #1253 Parse more than one string per instance
Submitted: 2004-04-21 17:01 UTC
From: as at mindcom dot de Assigned: davey
Status: Closed Package: XML_Tree
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2004-04-21 17:01 UTC] as at mindcom dot de
Description: ------------ it is not possible to parse more than one document per instance. this could be fixed for example with $this->i=null at start of function "&getTreeFromString($str)" Reproduce code: --------------- require 'xml\tree.php'; $xmltree = new XML_Tree(); $fields = $xmltree->getTreeFromString($s1); print_r($fields); $xmltree->reset(); $fields =& $xmltree->getTreeFromString($s2); print_r($fields); Expected result: ---------------- Would be nice to see the Elements of $s1 and $s2 :-) Actual result: -------------- You will only see $s1 twice

Comments

 [2004-05-15 14:16 UTC] davey
Added in my uber patch. - Davey