Home » XML » XML_Tree » Bug #8235
Value zero
Details
| Submitted | 2006-07-17 17:46 UTC |
|---|---|
| From | mgerbault at jouve dot fr |
| Status | Suspended |
| Package | XML_Tree |
| PHP Version | 4.3.0 |
| OS | FEDORA |
| Roadmaps | (Not assigned) |
Comments
[2006-07-17 17:46 UTC] mgerbault at jouve dot fr
Description:
------------
If a node value is zero, PEAR Parser return a empty string !
Test script:
---------------
$tree = new XML_Tree("exemple_c2.xml");
$tmp= $tree->getTreeFromFile();
Expected result:
----------------
[2] => xml_tree_node Object
(
[attributes] => Array
(
)
[children] => Array
(
)
[content] => 0
[name] => ANS
)
Actual result:
--------------
[2] => xml_tree_node Object
(
[attributes] => Array
(
)
[children] => Array
(
)
[content] =>
[name] => ANS
)