JRegistryFormatXML/stringToObject: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Parse a XML formatted string and convert it into an object.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JRegistryFormatXML/stri... |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
Parse a XML formatted string and convert it into an object. | Parse a XML formatted string and convert it into an object. | ||
===Syntax=== | ===Syntax=== | ||
| Line 42: | Line 40: | ||
</source> | </source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=stringToObject | category=stringToObject | ||
category=JRegistryFormatXML | category=JRegistryFormatXML | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:00, 25 March 2017
Description
Parse a XML formatted string and convert it into an object.
Syntax
stringToObject($data, $namespace='')
| Parameter Name | Default Value | Description |
|---|---|---|
| $data | XML Formatted String | |
| $namespace |
Returns
object Data object.
Defined in
libraries/joomla/registry/format/xml.php
Importing
jimport( 'joomla.registry.format.xml' );
Source Body
public function stringToObject($data, $namespace='')
{
return true;
}
Examples
Code Examples