<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=XML_Beautifier</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/5450" />
      <rdf:li rdf:resource="http://pear.php.net/bug/4197" />
      <rdf:li rdf:resource="http://pear.php.net/bug/2144" />
      <rdf:li rdf:resource="http://pear.php.net/bug/1884" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/5450">
      <title>XML_Beautifier: Bug 5450 [Verified] Parser strip many tags</title>
      <link>http://pear.php.net/bugs/5450</link>
      <content:encoded><![CDATA[<pre>XML_Beautifier Bug
Reported by jonysk@...
2005-09-19T00:42:21+00:00
PHP: 5.0.3 OS: Debian Linux Package Version: 

Description:
------------
This class is very useful for indent codes... But, unfortunately, many relevant tags are stripped, such as CDATA sections and DOCTYPE definition. This make the class useless for complex codes that have those features...



Test script:
---------------
A little example: 

$string = &quot;&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;&lt;!DOCTYPE bookmark SYSTEM \&quot;bookmark.dtd\&quot;&gt;&lt;bookmark&gt;&lt;category&gt;&lt;![CDATA[ this cdata will be stripped ]]&gt;&lt;/category&gt;&lt;/bookmark&gt;&quot;;

$xml_b = new XML_Beautifier();
if (Error::isError($a = $xml_b-&gt;formatString($string))) {
        echo $a-&gt;getMessage();	
} else {
        echo $a;
}

Expected result:
----------------
&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;
&lt;!DOCTYPE bookmark SYSTEM &quot;bookmark.dtd&quot;&gt;
&lt;bookmark&gt;
      &lt;category&gt;
            &lt;![CDATA[ this cdata will be stripped ]]&gt;
      &lt;/category&gt;
&lt;/bookmark&gt;

Actual result:
--------------
&lt;bookmark&gt;
      &lt;category&gt;
            this cdata will be stripped
      &lt;/category&gt;
&lt;/bookmark&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>XML_Beautifier Bug
Reported by jonysk@...
2005-09-19T00:42:21+00:00
PHP: 5.0.3 OS: Debian Linux Package Version: 

Description:
------------
This class is very useful for indent codes... But, unfortunately, many relevant tags are stripped, such as CDATA sections and DOCTYPE definition. This make the class useless for complex codes that have those features...



Test script:
---------------
A little example: 

$string = &quot;&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;&lt;!DOCTYPE bookmark SYSTEM \&quot;bookmark.dtd\&quot;&gt;&lt;bookmark&gt;&lt;category&gt;&lt;![CDATA[ this cdata will be stripped ]]&gt;&lt;/category&gt;&lt;/bookmark&gt;&quot;;

$xml_b = new XML_Beautifier();
if (Error::isError($a = $xml_b-&gt;formatString($string))) {
        echo $a-&gt;getMessage();	
} else {
        echo $a;
}

Expected result:
----------------
&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;
&lt;!DOCTYPE bookmark SYSTEM &quot;bookmark.dtd&quot;&gt;
&lt;bookmark&gt;
      &lt;category&gt;
            &lt;![CDATA[ this cdata will be stripped ]]&gt;
      &lt;/category&gt;
&lt;/bookmark&gt;

Actual result:
--------------
&lt;bookmark&gt;
      &lt;category&gt;
            this cdata will be stripped
      &lt;/category&gt;
&lt;/bookmark&gt;</pre>]]></description>
      <dc:date>2009-06-01T18:40:47+00:00</dc:date>
      <dc:creator>jonysk &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>XML_Beautifier Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/4197">
      <title>XML_Beautifier: Feature/Change Request 4197 [Open] Choose change to open and close tags</title>
      <link>http://pear.php.net/bugs/4197</link>
      <content:encoded><![CDATA[<pre>XML_Beautifier Feature/Change Request
Reported by info@...
2005-04-21T08:15:37+00:00
PHP: 5.0.3 OS:  Package Version: 

Description:
------------
I would like to be abled to choose how tags are changed to open and close tags.

1.) &lt;div /&gt; --&gt; &lt;div /&gt;  |  &lt;div&gt;&lt;/div&gt; --&gt; &lt;div&gt;&lt;/div&gt;
2.) &lt;div /&gt; --&gt; &lt;div&gt;&lt;/div&gt;  |  &lt;div&gt;&lt;/div&gt; --&gt; &lt;div&gt;&lt;/div&gt;
3.) &lt;div /&gt; --&gt; &lt;div /&gt;  |  &lt;div&gt;&lt;/div&gt; --&gt; &lt;div /&gt;

Now method 3 is always used. This pretty much kills the use of the beautifier for XHTML, since tags like &lt;script /&gt; are not accepted.</pre>]]></content:encoded>
      <description><![CDATA[<pre>XML_Beautifier Feature/Change Request
Reported by info@...
2005-04-21T08:15:37+00:00
PHP: 5.0.3 OS:  Package Version: 

Description:
------------
I would like to be abled to choose how tags are changed to open and close tags.

1.) &lt;div /&gt; --&gt; &lt;div /&gt;  |  &lt;div&gt;&lt;/div&gt; --&gt; &lt;div&gt;&lt;/div&gt;
2.) &lt;div /&gt; --&gt; &lt;div&gt;&lt;/div&gt;  |  &lt;div&gt;&lt;/div&gt; --&gt; &lt;div&gt;&lt;/div&gt;
3.) &lt;div /&gt; --&gt; &lt;div /&gt;  |  &lt;div&gt;&lt;/div&gt; --&gt; &lt;div /&gt;

Now method 3 is always used. This pretty much kills the use of the beautifier for XHTML, since tags like &lt;script /&gt; are not accepted.</pre>]]></description>
      <dc:date>2008-10-02T16:45:46+00:00</dc:date>
      <dc:creator>info &amp;#x61;&amp;#116; adaniels &amp;#x64;&amp;#111;&amp;#x74; nl</dc:creator>
      <dc:subject>XML_Beautifier Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/2144">
      <title>XML_Beautifier: Bug 2144 [Verified] High-UTF entities in attributed decoded as ?</title>
      <link>http://pear.php.net/bugs/2144</link>
      <content:encoded><![CDATA[<pre>XML_Beautifier Bug
Reported by spam@...
2004-08-17T02:08:53+00:00
PHP: 4.3.3 OS: MacOS X 10.3 Package Version: 

Description:
------------
When converting XML in UTF-8 containing russian letters 
encoded as character references in attribute values 
converted attribute values contain only ?????

Reproduce code:
---------------
	$_xml = '&lt;' . '?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?' . '&gt;';
  
  $_xml .= &lt;&lt;&lt;EOF
  &lt;bogustag attribute=&quot;&amp;#x418;&amp;#x43D;&amp;#x43D;&amp;#x43E;&amp;#x432;&amp;#x430;&amp;#x446;&amp;#x438;&amp;#x43E;&amp;#x43D;&amp;#x43D;&amp;#x44B;&amp;#x439; &amp;#x434;&amp;#x430;&amp;#x439;&amp;#x434;&amp;#x436;&amp;#x435;&amp;#x441;&amp;#x442;&quot;&gt;
    &lt;content /&gt;
  &lt;/bogustag&gt;
EOF;

require_once 'pear/XML/Beautifier.php';
$bf = new XML_Beautifier;

echo $bf-&gt;formatString( $_xml);

Expected result:
----------------
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;  
&lt;bogustag attribute=&quot;(russian letters here)&quot;&gt;
    &lt;content /&gt;
&lt;/bogustag&gt;

see http://clients.julik.nl/cases/bea.xml

Actual result:
--------------
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;  
&lt;bogustag attribute=&quot;????????????? ????????&quot; 
feed_id=&quot;4&quot;&gt;
    &lt;content /&gt;
&lt;/bogustag&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>XML_Beautifier Bug
Reported by spam@...
2004-08-17T02:08:53+00:00
PHP: 4.3.3 OS: MacOS X 10.3 Package Version: 

Description:
------------
When converting XML in UTF-8 containing russian letters 
encoded as character references in attribute values 
converted attribute values contain only ?????

Reproduce code:
---------------
	$_xml = '&lt;' . '?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?' . '&gt;';
  
  $_xml .= &lt;&lt;&lt;EOF
  &lt;bogustag attribute=&quot;&amp;#x418;&amp;#x43D;&amp;#x43D;&amp;#x43E;&amp;#x432;&amp;#x430;&amp;#x446;&amp;#x438;&amp;#x43E;&amp;#x43D;&amp;#x43D;&amp;#x44B;&amp;#x439; &amp;#x434;&amp;#x430;&amp;#x439;&amp;#x434;&amp;#x436;&amp;#x435;&amp;#x441;&amp;#x442;&quot;&gt;
    &lt;content /&gt;
  &lt;/bogustag&gt;
EOF;

require_once 'pear/XML/Beautifier.php';
$bf = new XML_Beautifier;

echo $bf-&gt;formatString( $_xml);

Expected result:
----------------
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;  
&lt;bogustag attribute=&quot;(russian letters here)&quot;&gt;
    &lt;content /&gt;
&lt;/bogustag&gt;

see http://clients.julik.nl/cases/bea.xml

Actual result:
--------------
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;  
&lt;bogustag attribute=&quot;????????????? ????????&quot; 
feed_id=&quot;4&quot;&gt;
    &lt;content /&gt;
&lt;/bogustag&gt;</pre>]]></description>
      <dc:date>2009-06-01T18:39:38+00:00</dc:date>
      <dc:creator>spam &amp;#x61;&amp;#116; julik &amp;#x64;&amp;#111;&amp;#x74; nl</dc:creator>
      <dc:subject>XML_Beautifier Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/1884">
      <title>XML_Beautifier: Bug 1884 [Verified] Parser is changing Ã¶ to &quot; Ã¶ &quot;</title>
      <link>http://pear.php.net/bugs/1884</link>
      <content:encoded><![CDATA[<pre>XML_Beautifier Bug
Reported by rm@...
2004-07-15T14:58:34+00:00
PHP: Irrelevant OS: Debian Package Version: 

Description:
------------
The Parser is changing sch&amp;#246;n to sch Ã¶ n.

Reproduce code:
---------------
&lt;?php
$vXMLBeautifier='XML/Beautifier.php';

$vXMLInhalt = '&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;&lt;objekttitel&gt;sch&amp;#246;n&lt;/objekttitel&gt;';

require_once $vXMLBeautifier;
$vXMLBeautifier = new XML_Beautifier();
echo $vXMLBeautifier-&gt;formatString($vXMLInhalt);
?&gt;


Expected result:
----------------
&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;&lt;objekttitel&gt;sch&amp;#246;n&lt;/objekttitel&gt;


Actual result:
--------------
&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot; standalone=&quot;yes&quot;?&gt;&lt;objekttitel&gt;sch Ã¶ n&lt;/objekttitel&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>XML_Beautifier Bug
Reported by rm@...
2004-07-15T14:58:34+00:00
PHP: Irrelevant OS: Debian Package Version: 

Description:
------------
The Parser is changing sch&amp;#246;n to sch Ã¶ n.

Reproduce code:
---------------
&lt;?php
$vXMLBeautifier='XML/Beautifier.php';

$vXMLInhalt = '&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;&lt;objekttitel&gt;sch&amp;#246;n&lt;/objekttitel&gt;';

require_once $vXMLBeautifier;
$vXMLBeautifier = new XML_Beautifier();
echo $vXMLBeautifier-&gt;formatString($vXMLInhalt);
?&gt;


Expected result:
----------------
&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;&lt;objekttitel&gt;sch&amp;#246;n&lt;/objekttitel&gt;


Actual result:
--------------
&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot; standalone=&quot;yes&quot;?&gt;&lt;objekttitel&gt;sch Ã¶ n&lt;/objekttitel&gt;</pre>]]></description>
      <dc:date>2009-06-01T18:39:09+00:00</dc:date>
      <dc:creator>rm &amp;#x61;&amp;#116; visionthink &amp;#x64;&amp;#111;&amp;#x74; de</dc:creator>
      <dc:subject>XML_Beautifier Bug</dc:subject>
    </item>
</rdf:RDF>
