php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15950 xmllint for dump_mem
Submitted: 2002-03-08 03:03 UTC Modified: 2002-03-08 04:20 UTC
From: bigredlinux at yahoo dot com Assigned: chregu (profile)
Status: Closed Package: DOM XML related
PHP Version: 4.1.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: bigredlinux at yahoo dot com
New email:
PHP Version: OS:

 

 [2002-03-08 03:03 UTC] bigredlinux at yahoo dot com
Would it be possible to add an optional parameter to dump_mem (and family) to pass the tree through xmllint --format??  Since you are already using the libxml2 functions, it seems only natural to apply this one.  After weeks of fighting with keeping the whitespace correct in an xml document after moving, manipulating and adding elements, I found it is just easiest to start from the top and reformat then to try to play in the whitespace sandbox.  Daniel Veillard's xmllint functions are super fast and hardly hurt performance, especially when you have to show your boss the xml file after it get's torn to shreds.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-08 03:56 UTC] chregu@php.net
not a big task. Will implement it.
 [2002-03-08 04:20 UTC] chregu@php.net
"fixed" in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 07:01:30 2024 UTC