JSimpleXMLElement: Difference between revisions
From Joomla! Documentation
m moving preparation |
m clean up |
||
| Line 2: | Line 2: | ||
=={{JVer|11.1}} JSimpleXMLElement== | =={{JVer|11.1}} JSimpleXMLElement== | ||
===Description=== | ===Description=== | ||
{{Description:JSimpleXMLElement}} | {{subst:Description:JSimpleXMLElement}} | ||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
| Line 78: | Line 76: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage Utilities|Utilities]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage Utilities|Utilities]] | ||
* [[API17:JSimpleXMLElement|Other versions of JSimpleXMLElement]] | * [[API17:JSimpleXMLElement|Other versions of JSimpleXMLElement]] | ||
{{SeeAlso:JSimpleXMLElement}} | {{subst:SeeAlso:JSimpleXMLElement}} | ||
===User contributed notes=== | ===User contributed notes=== | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
Revision as of 16:09, 24 March 2017
JSimpleXMLElement
Description
{{subst:Description:JSimpleXMLElement}}
Methods
| 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
jimport( 'joomla.utilities.simplexml' );
See also
JSimpleXMLElement source code on BitBucket
Subpackage Utilities- Other versions of JSimpleXMLElement
{{subst:SeeAlso:JSimpleXMLElement}}
User contributed notes
<CodeExamplesForm />