JXMLElement

Extends \SimpleXMLElement

Wrapper class for php SimpleXMLElement.

deprecated
since

1.6

deprecated

3.0 Use SimpleXMLElement instead.

package

Joomla.Legacy

Methods

asFormattedXml

Return a well-formed XML string based on SimpleXML element

asFormattedXml(boolean $compressed = false, string $indent = "\t", integer $level) : string
deprecated
since

1.6

deprecated

3.0 Use SimpleXMLElement::asXml() instead.

Arguments

$compressed

booleanShould we use indentation and newlines ?

$indent

stringIndention character.

$level

integerThe level within the document which informs the indentation.

Response

string

name

Get the name of the element.

name() : string
deprecated
since

1.6

deprecated

3.0 Use SimpleXMLElement::getName() instead.

Response

string