API15

JRegistryFormatXML: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JRegistryFormatXML}} =...
 
m preparing for archive only
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JRegistryFormatXML|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JRegistryFormatXML}}
===Defined in===
===Defined in===
libraries/joomla/registry/format/xml.php
libraries/joomla/registry/format/xml.php
Line 20: Line 15:


|}
|}
===Importing===
===Importing===
<source lang="php">jimport( 'joomla.registry.format.xml' );</source>
<source lang="php">jimport( 'joomla.registry.format.xml' );</source>


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


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=JRegistryFormatXML
  category=JRegistryFormatXML
  category=CodeExample
  namespace=CodeExample
  category=ClassExample
  category=ClassExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 01:04, 25 March 2017

Defined in

libraries/joomla/registry/format/xml.php

Methods

Method name Description
stringToObject Converts an XML formatted string into an object
objectToString Converts an object into an XML formatted string

If more than two levels of nested groups are necessary, since INI is not useful, XML or another format should be used.

Importing

jimport( 'joomla.registry.format.xml' );



Examples

Code Examples