Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.2

Bug #1233 Empty tags replaced by single tag
Submitted: 2004-04-17 18:48 UTC
From: guillaume dot lecanu at online dot fr Assigned: schst
Status: Wont fix Package: XML_Beautifier
PHP Version: 4.3.4 OS: Debian Sid
Roadmaps: (Not assigned)    
Subscription  


 [2004-04-17 18:48 UTC] guillaume dot lecanu at online dot fr
Description: ------------ The empty tags are replaced by single tag : <span></span> to <span /> Reproduce code: --------------- <?php include_once 'XML/Beautifier.php'; $xml = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>' .'<example></example>'; $fmt = new XML_Beautifier(); $out =& $fmt->formatString($xml); print "<br />Original XML : <br />".htmlSpecialChars($xml); print "<br />Formatted XML : <br />".htmlSpecialChars($out); ?> Expected result: ---------------- Original XML : <?xml version="1.0" encoding="UTF-8" standalone="no"?><example></example> Formatted XML : <?xml version="1.0" encoding="UTF-8" standalone="no"?><example></example> Actual result: -------------- Original XML : <?xml version="1.0" encoding="UTF-8" standalone="no"?><example></example> Formatted XML : <?xml version="1.0" encoding="UTF-8" standalone="yes"?><example />

Comments

 [2004-04-30 07:15 UTC] unknown_delivery at yahoo dot com
You need to replace output as html.
 [2004-07-11 22:53 UTC] gurugeek
Dear Maintainer, Your package xml_beautifier has currently 1 open bug. We urge you to take the necessary steps to solve the reported issues at your soonest convenience. If the bug issue hasn’t been addressed yet you are kindly asked to take the necessary steps to ensure a prompt resolution of the problem. If you already addressed the reported problem feel free to change the bug status as soon as possible. Regards David Costa PEAR Quality Assurance pear-qa@lists.php.net
 [2004-07-12 06:32 UTC] schst
This package is beautifying XML. In XML <span></span> is identical to <span/>. It's not inteded to clean up HTML, if you need this, try ext/tidy. As the package relies on xml_* functions of PHP, there's no way to implement the desired functionality.