class JXMLElement extends SimpleXMLElement

Wrapper class for php SimpleXMLElement.

Methods

string
name()

Get the name of the element.

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

Return a well-formed XML string based on SimpleXML element

Details

string name()

Get the name of the element.

Return Value

string

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

Return a well-formed XML string based on SimpleXML element

Parameters

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

Return Value

string