CodeExample

CodeExample:4d30846f12c6d

From Joomla! Documentation

Revision as of 17:14, 14 January 2011 by Elkuku (talk | contribs) (CodeExample provided by Elkuku)
(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