JSimpleXMLElement
SimpleXML Element
This object stores all of the direct children of itself in the $children array. They are also stored by type as arrays. So, if, for example, this tag had 2 <font> tags as children, there would be a class member called $font created as an array. $font[0] would be the first font tag, and $font[1] would be the second.
To loop through all of the direct children of this object, the $children member should be used.
To loop through all of the direct children of a specific tag for this object, it is probably easier to use the arrays of the specific tag names, as explained above.
Located in /joomla/utilities/simplexml.php (line 358)
JObject (Subpackage Base)
![]()
JSimpleXMLElement (Subpackage Utilities)
array
$_attributes
= array() (line 365)
Array with the attributes of this XML element
array
$_children
= array() (line 386)
Array of references to the objects of all direct children of this XML object
string
$_data
= '' (line 379)
The data the element contains
int
$_level
= 0 (line 393)
The level of this XML element
string
$_name
= '' (line 372)
The name of the element
Inherited Variables
Inherited from JObject
JObject::$_errors
Constructor, sets up all the default values
- string $name
- array $attrs
- int $parents
- $level
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Adds an attribute to the element
- string $name
- array $attrs
- $value
Adds a direct child to the element
- string $name
- array $attrs
- int $level
Get the an attribute of the element
- string $attribute: The name of the attribute
Get an element in the document by / separated path
- string $path: The / separated path to the element
traverses the tree calling the $callback( JSimpleXMLElement $this, mixed $args=array() ) function with each JSimpleXMLElement.
- string $callback: function name
- array $args
Removes an attribute from the element
- string $name
Return a well-formed XML string based on SimpleXML element
- $whitespace
- JObject::toString()
- Object-to-string conversion.
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::getPublicProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
Documentation generated on Mon, 22 Sep 2008 12:14:40 +0100 by phpDocumentor 1.3.1



