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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: peter dot bilik at nspto dot sk
New email:
PHP Version: OS:

 

 [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-2018 The PHP Group
All rights reserved.
Last updated: Fri Jul 20 02:01:25 2018 UTC