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
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 !
Your email address:
MUST BE VALID
Solve the problem:
28 - 9 = ?
Subscribe to this entry?

 
 [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: Tue May 14 21:01:33 2024 UTC