JXMLElement: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/utilities/xmlelement.php | libraries/joomla/utilities/xmlelement.php | ||
| Line 26: | Line 24: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JXMLElement | category=JXMLElement | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:17, 25 March 2017
Defined in
libraries/joomla/utilities/xmlelement.php
Methods
| Method name | Description |
|---|---|
| name | Get the name of the element. Warning: don't use getName() as it's broken up to php 5.2.3 |
| data | LEGACY - Gets the element 'data'. |
| getAttribute | LEGACY - Gets an elements attribute by name. |
| asFormattedXML | Return a well-formed XML string based on SimpleXML element |
Importing
jimport( 'joomla.utilities.xmlelement' );
Examples
Code Examples