API15:JSimpleXMLElement
From Joomla! Documentation
(Difference between revisions)
(New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JSimpleXMLElement}}
===...) |
|||
| Line 54: | Line 54: | ||
|Return a well-formed XML string based on SimpleXML element | |Return a well-formed XML string based on SimpleXML element | ||
|} | |} | ||
| + | |||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.utilities.simplexml' );</source> | <source lang="php">jimport( 'joomla.utilities.simplexml' );</source> | ||
Latest revision as of 12:40, 25 March 2010
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
[Edit Descripton] Description:JSimpleXMLElement
Contents |
[edit] Defined in
libraries/joomla/utilities/simplexml.php
[edit] Methods
| Method name | Description |
|---|---|
| __construct | Constructor, sets up all the default values |
| name | Get the name of the element |
| attributes | Get the an attribute of the element |
| data | Get the data of the element |
| setData | Set the data of the element |
| children | Get the children of the element |
| level | Get the level of the element |
| addAttribute | Adds an attribute to the element |
| removeAttribute | Removes an attribute from the element |
| addChild | Adds a direct child to the element |
| removeChild | |
| getElementByPath | Get an element in the document by / separated path |
| map | traverses the tree calling the $callback( JSimpleXMLElement $this, mixed $args=array() ) function with each JSimpleXMLElement. |
| toString | Return a well-formed XML string based on SimpleXML element |
[edit] Importing
jimport( 'joomla.utilities.simplexml' );
[Edit See Also] SeeAlso:JSimpleXMLElement
[edit] Examples
<CodeExamplesForm />
