Class JXMLElement

Description

Wrapper class for php SimpleXMLElement.

  • deprecated: 13.3 Use SimpleXMLElement instead.
  • since: 11.1

Located in /libraries/joomla/utilities/xmlelement.php (line 20)

SimpleXMLElement
   |
   --JXMLElement
Method Summary
string asFormattedXML ([boolean $compressed = false], [integer $indent = "\t"], [integer $level = 0])
string data ()
string getAttribute (string $name)
string name ()
Methods
asFormattedXML (line 84)

Return a well-formed XML string based on SimpleXML element

  • deprecated: 13.3 Use SimpleXMLElement::asXML() instead.
  • since: 11.1
  • access: public
string asFormattedXML ([boolean $compressed = false], [integer $indent = "\t"], [integer $level = 0])
  • boolean $compressed: Should we use indentation and newlines ?
  • integer $indent: Indention level.
  • integer $level: The level within the document which informs the indentation.
data (line 44)

Legacy method to get the element data.

  • deprecated: 12.1
  • since: 11.1
  • access: public
string data ()
getAttribute (line 64)

Legacy method gets an elements attribute by name.

  • see: SimpleXMLElement::attributes
  • deprecated: 12.1
  • since: 11.1
  • access: public
string getAttribute (string $name)
  • string $name: Attribute to get
name (line 30)

Get the name of the element.

  • deprecated: 13.3 Use SimpleXMLElement::getName() instead.
  • since: 11.1
  • access: public
string name ()

Inherited Methods

Inherited From SimpleXMLElement (Internal Class)

constructor __construct ( $data, [$options = ], [$data_is_url = ], [$ns = ], [$is_prefix = ] )
addAttribute ( $name, [$value = ], [$ns = ] )
addChild ( $name, [$value = ], [$ns = ] )
asXML ( [$filename = ] )
attributes ( [$ns = ], [$is_prefix = ] )
children ( [$ns = ], [$is_prefix = ] )
count ( )
getDocNamespaces ( [$recursve = ] )
getName ( )
getNamespaces ( [$recursve = ] )
registerXPathNamespace ( $prefix, $ns )
saveXML ( [$filename = ] )
xpath ( $path )
__toString ( )

Documentation generated on Mon, 25 Jun 2012 14:01:40 -0500 by phpDocumentor 1.4.4