XML_Beautifier::formatString

XML_Beautifier::formatString() – beautify a string

Synopsis

require_once 'XML/Beautifier.php';

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

Description

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

Parameter

  • 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

Note

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.