CodeExample

CodeExample:4d30818ae30fe

From Joomla! Documentation

Revision as of 17:02, 14 January 2011 by Elkuku (talk | contribs) (CodeExample provided by Elkuku)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Get the name of the document

demo.xml

<jdoc>
	<doku kategory="Info">Wiki</doku>
</jdoc>
<?php

$xml = JFactory::getXML('demo.xml');

echo $xml->name();

Output:

jdoc

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