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: Mon, 20 Oct 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.