php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19667 xml-tree
Submitted: 2002-09-30 03:02 UTC Modified: 2003-04-02 10:56 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: peter dot bilik at nspto dot sk Assigned:
Status: No Feedback Package: PEAR related
PHP Version: 4.2.2 OS: LINUX
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
50 - 48 = ?
Subscribe to this entry?

 
 [2002-09-30 03:02 UTC] peter dot bilik at nspto dot sk
I have sample xml file: test.xml
<?xml version="1.0" ?>
<root>
 <data>0</data>
 <data>378</data>
 <data>15</data>
 <data>0</data>
</root>

I have used XML/Tree.php to parse XML tree to string.

$tree = new XML_Tree("test.xml");
$t = &$tree->getTreeFromFile();
$t->dump();

After parsing test.xml, element width content '0' are empty!
 <data></data>
 <data>378</data>
 <data>15</data>
 <data></data>
This is problem, I need value '0'.

Thank you for help

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-28 23:29 UTC] jon at jellybob dot co dot uk
Looks like values need converting to strings before being output to the xml tree... I'd fix it tonight, but I'm afraid sleep comes first.
 [2003-03-27 06:46 UTC] mj@php.net
There has been a fix concerning this issue some time ago. Could you please check the latest CVS version from http://cvs.php.net/cvs.php/pear/XML_Tree and see if it works?
 [2003-04-02 10:56 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 16:01:30 2024 UTC