API16

JSimpleXMLElement/setData

From Joomla! Documentation

< API16:JSimpleXMLElement

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Set the data of the element



Syntax[edit]

setData($data)
Parameter Name Default Value Description
$data $data

Returns[edit]

string

Defined in[edit]

libraries/joomla/utilities/simplexml.php

Importing[edit]

jimport( 'joomla.utilities.simplexml' );

Source Body[edit]

function setData($data) {
        $this->_data = $data;
}



Examples[edit]

Code Examples[edit]