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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-07-12 06:32 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!