From Joomla! Documentation

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Defined in[edit]



Method name Description
__construct Constructor, sets up all the default values
name Get the name of the element
attributes Get the an attribute of the element
data Get the data of the element
setData Set the data of the element
children Get the children of the element
level Get the level of the element
addAttribute Adds an attribute to the element
removeAttribute Removes an attribute from the element
addChild Adds a direct child to the element
getElementByPath Get an element in the document by / separated path
map traverses the tree calling the $callback(JSimpleXMLElement $this, mixed $args=array()) function with each JSimpleXMLElement.
toString Return a well-formed XML string based on SimpleXML element


jimport( 'joomla.utilities.simplexml' );


Code Examples[edit]