API16

API16:JSimpleXMLElement/setData

From Joomla! Documentation

Description

Set the data of the element



Syntax

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

Returns

string

Defined in

libraries/joomla/utilities/simplexml.php

Importing

jimport( 'joomla.utilities.simplexml' );

Source Body

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



Examples

Code Examples