Class XMLFunctions

Description

A library for manipulating XML objects and/or strings

Located in /class.xmlfunctions.php (line 24)


                
			
Method Summary
static string PrettyPrint (string $sXML)
Methods
static method PrettyPrint (line 47)

Receives a string of XML and uses the DOM extension to properly format the XML. This includes breaking the elements onto new lines and properly indenting.

This method requires the DOM extension and DOMDocument class. If this class does not exist, PrettyPrint will throw an exception.

  • return: A properly indented, pretty version of the passed XML
  • access: public
static string PrettyPrint (string $sXML)
  • string $sXML: The XML string to format

Documentation generated on Thu, 25 Feb 2010 15:59:42 -0500 by phpDocumentor 1.4.3