JXMLElement
Extends \SimpleXMLElementWrapper class for php SimpleXMLElement.
deprecated
package |
Joomla.Platform |
---|---|
subpackage |
Utilities |
since |
11.1 |
deprecated |
13.3 Use SimpleXMLElement instead. |
Methods
asFormattedXML
Return a well-formed XML string based on SimpleXML element
asFormattedXML(boolean $compressed = false, integer $indent = "\t", integer $level) : string
deprecated
since |
11.1 |
---|---|
deprecated |
13.3 Use SimpleXMLElement::asXML() instead. |
Arguments
- $compressed
boolean
Should we use indentation and newlines ?- $indent
integer
Indention level.- $level
integer
The level within the document which informs the indentation.
Response
string
data
Legacy method to get the element data.
data() : string
deprecated
deprecated |
12.1 |
---|---|
since |
11.1 |
Response
string
getAttribute
Legacy method gets an elements attribute by name.
getAttribute(string $name) : string
deprecated
since |
11.1 |
---|---|
deprecated |
12.1 |
see | \SimpleXMLElement::attributes |
Arguments
- $name
string
Attribute to get
Response
string
name
Get the name of the element.
name() : string
deprecated
since |
11.1 |
---|---|
deprecated |
13.3 Use SimpleXMLElement::getName() instead. |
Response
string