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
 [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: Sun Apr 28 19:01:28 2024 UTC