XML_Beautifier::formatString() – beautify a string


require_once 'XML/Beautifier.php';

object XML_Beautifier::formatString ( string $string , string $renderer = "Plain" )


Beautifies an XML string. Use this method to beautify an XML document that has been generated on-the-fly.


  • string $string - string containing an XML document.

  • string $renderer - renderer to use, currently only a "Plain" XML renderer can be used.

Return value

string beautified XML document


This function can not be called statically.

beautify a file (Previous) XML_DTD (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.