Creates and renders a XML tree based on PHP values
The XmlRender is able to convert PHP values (strings, numbers, arrays, objects) to XML nodes. Finally, the generated XML tree can be transformed into a XML string.
Example:
Located in /core/xml/XmlRender.class.php (line 58)
PHP2Go | --XmlRender
Rendering options
Indicates how objects, arrays and other PHP native types should be converted into XML nodes.
XML document's charset
XML contents
XML document
Builds the root node of the XML tree
Generic method to add content in the XML tree
Content will be added under the tree's root node
Generic method to add content under a given node
Adds a data set in the XML tree
The data set is added under the tree's root node.
Displays the generated XML string, along with the download HTTP headers
Returns the generated XML string
You must call render() before calling getContent(), download() or toFile().
Renders the XML string
Set default rendering options
These options will be used when add methods are called. The list of available options are:
Set the document's charset
Saves the XML string on a file
Internal method used to add an array in the XML tree
Internal method used to add an object in the XML tree
Internal method to add a string, boolean or numeric value in the XML tree
Inherited From PHP2Go
PHP2Go::PHP2Go()
PHP2Go::equals()
PHP2Go::generateUniqueId()
PHP2Go::getClassName()
PHP2Go::getConfigVal()
PHP2Go::getLangVal()
PHP2Go::getObjectName()
PHP2Go::getParentName()
PHP2Go::hasDestructor()
PHP2Go::hashCode()
PHP2Go::isA()
PHP2Go::isSubclassOf()
PHP2Go::logError()
PHP2Go::raiseError()
PHP2Go::registerDestructor()
PHP2Go::registerShutdownFunc()
PHP2Go::retrieve()
PHP2Go::store()
PHP2Go::__toString()
Documentation generated on Sun, 07 Oct 2007 19:31:19 -0300 by phpDocumentor 1.3.2