The following code
Code: Select all
$xmlstring = <<<EOD
<root>
<at>foo</at>
<att>bar</att>
</root>
EOD;
require_once "XML/Beautifier.php";
$beautifier = new XML_Beautifier();
$result = $beautifier->formatString($xmlstring);Code: Select all
Deprecated: Assigning the return value of new by reference is deprecated in G:\xampp\php\PEAR\XML\Beautifier.php on line 380
Strict Standards: Redefining already defined constructor for class XML_Parser in G:\xampp\php\PEAR\XML\Parser.php on line 227
Deprecated: Assigning the return value of new by reference is deprecated in G:\xampp\php\PEAR\XML\Parser.php on line 616
Strict Standards: Declaration of XML_Parser::raiseError() should be compatible with that of PEAR::raiseError() in G:\xampp\php\PEAR\XML\Parser.php on line 117
Strict Standards: Declaration of XML_Beautifier_Tokenizer::startHandler() should be compatible with that of XML_Parser::startHandler() in G:\xampp\php\PEAR\XML\Beautifier\Tokenizer.php on line 71
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Beautifier.php on line 337
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Beautifier.php on line 343
Strict Standards: Non-static method XML_Util::createStartElement() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Beautifier\Renderer\Plain.php on line 163
Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 731
Strict Standards: Non-static method XML_Util::createTag() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Beautifier\Renderer\Plain.php on line 156
Strict Standards: Non-static method XML_Util::createTagFromArray() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 524
Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 652
Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 664
Strict Standards: Non-static method XML_Util::createTag() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Beautifier\Renderer\Plain.php on line 156
Strict Standards: Non-static method XML_Util::createTagFromArray() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 524
Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 652
Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 664
Strict Standards: Non-static method XML_Util::createTag() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Beautifier\Renderer\Plain.php on line 156
Strict Standards: Non-static method XML_Util::createTagFromArray() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 524
Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 652
Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 664
Strict Standards: Non-static method XML_Util::createTag() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Beautifier\Renderer\Plain.php on line 156
Strict Standards: Non-static method XML_Util::createTagFromArray() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 524
Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 652
Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 664
Strict Standards: Non-static method XML_Util::createTag() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Beautifier\Renderer\Plain.php on line 156
Strict Standards: Non-static method XML_Util::createTagFromArray() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 524
Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 652
Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically, assuming $this from incompatible context in G:\xampp\php\PEAR\XML\Util.php on line 664
Strict Standards: Non-static method XML_Util::createEndElement() should not be called statically, assuming $this from incompatible context inIf not, how do I mitigate this? Alternatives?