class JXMLElement extends SimpleXMLElement


Located at : UKNOWVA_ROOT/libraries/joomla/utilities/xmlelement.php

Wrapper class for php SimpleXMLElement.

Methods

string
name()

Get the name of the element.

string
data() deprecated

Legacy method to get the element data.

string
getAttribute(string $name) deprecated

Legacy method gets an elements attribute by name.

string
asFormattedXML(boolean $compressed = false, integer $indent = ' ', integer $level)

Return a well-formed XML string based on SimpleXML element

Details

at line 27
string name()

Get the name of the element.

Return Value

string

at line 40
string data() deprecated

deprecated 12.1

Legacy method to get the element data.

Return Value

string

at line 55
string getAttribute(string $name) deprecated

deprecated 12.1

Legacy method gets an elements attribute by name.

Parameters

string $name Attribute to get

Return Value

string

at line 70
string asFormattedXML(boolean $compressed = false, integer $indent = ' ', integer $level)

Return a well-formed XML string based on SimpleXML element

Parameters

boolean $compressed Should we use indentation and newlines ?
integer $indent Indentaion level.
integer $level The level within the document which informs the indentation.

Return Value

string