API16

JSimpleXML/loadString

< API16:JSimpleXML

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

Interprets a string of XML into an object



Syntax

loadString($string, $classname=null)
Parameter Name Default Value Description
$string Well-formed xml string data
$classname null currently ignored

Returns

object

Defined in

libraries/joomla/utilities/simplexml.php

Importing

jimport( 'joomla.utilities.simplexml' );

Source Body

function loadString($string, $classname = null) {
        $this->_parse($string);
        return true;
}



Examples

Code Examples


Advertisement