JXMLElement: Difference between revisions
From Joomla! Documentation
New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JXMLElement}}
===Defined in==... |
m clean up |
||
| Line 1: | Line 1: | ||
{{subst:Description:JXMLElement}} | |||
{{Description:JXMLElement}} | |||
===Defined in=== | ===Defined in=== | ||
| Line 28: | Line 25: | ||
<source lang="php">jimport( 'joomla.utilities.xmlelement' );</source> | <source lang="php">jimport( 'joomla.utilities.xmlelement' );</source> | ||
{{subst:SeeAlso:JXMLElement}} | |||
{{SeeAlso:JXMLElement}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 14:38, 24 March 2017
{{subst:Description:JXMLElement}}
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' );
{{subst:SeeAlso:JXMLElement}}
Examples
<CodeExamplesForm />