cvs: pear /XML_Tree Tree.php
| From: | Thomas V.V.Cox | Date: | Sun, 24 Feb 2002 15:56:34 +0000 |
| Subject: | cvs: pear /XML_Tree Tree.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2597@lists.php.net to get a copy of this message | ||
cox Sun Feb 24 10:56:34 2002 EDT
Modified files:
/pear/XML_Tree Tree.php
Log:
Store attribs for root element
Index: pear/XML_Tree/Tree.php
diff -u pear/XML_Tree/Tree.php:1.11 pear/XML_Tree/Tree.php:1.12
--- pear/XML_Tree/Tree.php:1.11 Sun Feb 24 10:55:34 2002
+++ pear/XML_Tree/Tree.php Sun Feb 24 10:56:33 2002
@@ -18,7 +18,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> (tree mapping from xml file)|
// +----------------------------------------------------------------------+
//
-// $Id: Tree.php,v 1.11 2002/02/24 15:55:34 cox Exp $
+// $Id: Tree.php,v 1.12 2002/02/24 15:56:33 cox Exp $
//
require_once 'XML/Parser.php';
@@ -192,7 +192,7 @@
{
// root elem
if (!isset($this->i)) {
- $this->obj1 =& $this->add_root($elem);
+ $this->obj1 =& $this->add_root($elem, null, $attribs);
$this->i = 2;
} else {
$obj_id = 'obj' . $this->i++;