Actions

CodeExample

4d30846f12c6d

From Joomla! Documentation

Revision as of 12:14, 14 January 2011 by Elkuku (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Get the element data

demo.xml

<jdoc>
        <doku kategory="Info">Wiki</doku>
</jdoc>
<?php
 
$xml = JFactory::getXML('demo.xml');
 
echo $xml->doku->data();
 
/* Better: */
echo $xml->doku;

Ausgabe:

Wiki

Elkuku 11:14, 14 January 2011 (CST) Edit comment