API17:JSimpleXMLElement
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
[Edit Descripton] Description:JSimpleXMLElement
Defined in
libraries/joomla/utilities/simplexml.php
- see source code in BitBucket
Subpackage
Extends
Extended by
Methods
| Method name | Description |
|---|---|
| __construct | Constructor, sets up all the default values. |
| addAttribute | Adds an attribute to the element. |
| addChild | Adds a direct child to the element. |
| attributes | Get the an attribute of the element. |
| children | Get the children of the element. |
| data | Get the data of the element. |
| getElementByPath | Get an element in the document by / separated path. |
| level | Get the level of the element. |
| map | traverses the tree calling the $callback( $this, mixed $args=array()) function with each . |
| name | Get the name of the element. |
| removeAttribute | Removes an attribute from the element. |
| removeChild | |
| setData | Set the data of the element. |
| toString | Return a well-formed XML string based on SimpleXML element. |
Importing
jimport( 'joomla.utilities.simplexml' );
See also
- JSimpleXMLElement source code in BitBucket
- Other versions of this class
SeeAlso:JSimpleXMLElement [Edit See Also]
Examples
<CodeExamplesForm />
