API17

Difference between revisions of "JSimpleXMLElement"

From Joomla! Documentation

m (JoomlaWikiBot moved page JSimpleXMLElement/11.1 to API17:JSimpleXMLElement without leaving a redirect: Robot: Moved page)
m (→‎User contributed notes: moving preparation)
Line 93: Line 93:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JSimpleXMLElement]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 17:14, 11 May 2013

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JSimpleXMLElement[edit]

Description[edit]

Template:Description:JSimpleXMLElement [Edit Descripton]

Methods[edit]

Visibility Method name Description
public __construct Constructor, sets up all the default values.
public addAttribute Adds an attribute to the element.
public addChild Adds a direct child to the element.
public attributes Get the an attribute of the element.
public children Get the children of the element.
public data Get the data of the element.
public getElementByPath Get an element in the document by / separated path.
public level Get the level of the element.
public map Traverses the tree calling the $callback( $this, mixed $args=array()) function with each .
public name Get the name of the element.
public removeAttribute Removes an attribute from the element.
public removeChild
public setData Set the data of the element.
public toString Return a well-formed XML string based on SimpleXML element.
  • Defined in libraries/joomla/utilities/simplexml.php
  • Extends JObject

Importing[edit]

jimport( 'joomla.utilities.simplexml' );

See also[edit]

Template:SeeAlso:JSimpleXMLElement [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />