API16

JRegistryFormatXML/stringToObject: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
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.


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JRegistryFormatXML/stringToObject|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JRegistryFormatXML/stringToObject}}
 
 


===Syntax===
===Syntax===
Line 42: Line 40:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JRegistryFormatXML/stringToObject|Edit See Also]]<nowiki>]</nowiki>
 
</span>
{{SeeAlso:JRegistryFormatXML/stringToObject}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=stringToObject
  category=stringToObject
  category=JRegistryFormatXML
  category=JRegistryFormatXML
  category=CodeExample
  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