API17:JXMLElement
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
m (→User contributed notes: bad link repair) |
||
| (One intermediate revision by one user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|11.1}} JXMLElement== | ||
| + | ===Description=== | ||
| + | {{Description:JXMLElement}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JXMLElement|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JXMLElement|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
| + | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
| + | |public | ||
|[[JXMLElement::asFormattedXML/11.1|asFormattedXML]] | |[[JXMLElement::asFormattedXML/11.1|asFormattedXML]] | ||
|Return a well-formed XML string based on SimpleXML element. | |Return a well-formed XML string based on SimpleXML element. | ||
|- | |- | ||
| + | |public | ||
|[[JXMLElement::data/11.1|data]] | |[[JXMLElement::data/11.1|data]] | ||
|Legacy method to get the element data. | |Legacy method to get the element data. | ||
|- | |- | ||
| + | |public | ||
|[[JXMLElement::getAttribute/11.1|getAttribute]] | |[[JXMLElement::getAttribute/11.1|getAttribute]] | ||
|Legacy method gets an elements attribute by name. | |Legacy method gets an elements attribute by name. | ||
|- | |- | ||
| + | |public | ||
|[[JXMLElement::name/11.1|name]] | |[[JXMLElement::name/11.1|name]] | ||
|Get the name of the element. | |Get the name of the element. | ||
|- | |- | ||
|} | |} | ||
| + | * '''Defined in''' libraries/joomla/utilities/xmlelement.php | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.utilities.xmlelement' );</source> | <source lang="php">jimport( 'joomla.utilities.xmlelement' );</source> | ||
===See also=== | ===See also=== | ||
| − | * JXMLElement source code | + | * {{JVer|11.1}} '''JXMLElement source code''' on [[jplatform:utilities/xmlelement.php|BitBucket]] |
| − | * [[JXMLElement|Other versions of | + | * {{JVer|11.1}} Subpackage [[Subpackage Utilities/11.1|Utilities]] |
| + | * [[JXMLElement|Other versions of JXMLElement]] | ||
{{SeeAlso:JXMLElement}} | {{SeeAlso:JXMLElement}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JXMLElement|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JXMLElement|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | === | + | ===User contributed notes=== |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 47: | Line 49: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
| − | <noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JXMLElement]]</noinclude> | + | <noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JXMLElement]]</noinclude> |
Revision as of 14:07, 29 August 2012
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.
JXMLElement
Description
Description:JXMLElement [Edit Descripton]
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | asFormattedXML | Return a well-formed XML string based on SimpleXML element. |
| public | data | Legacy method to get the element data. |
| public | getAttribute | Legacy method gets an elements attribute by name. |
| public | name | Get the name of the element. |
- Defined in libraries/joomla/utilities/xmlelement.php
Importing
jimport( 'joomla.utilities.xmlelement' );
See also
-
JXMLElement source code on BitBucket
-
Subpackage Utilities
- Other versions of JXMLElement
SeeAlso:JXMLElement [Edit See Also]
User contributed notes
<CodeExamplesForm />
