JSimpleXML/setParser: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Set the parser
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
... |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
Set the parser | Set the parser | ||
===Syntax=== | ===Syntax=== | ||
| Line 34: | Line 32: | ||
</source> | </source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=setParser | category=setParser | ||
category=JSimpleXML | category=JSimpleXML | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:06, 25 March 2017
Description
Set the parser
Syntax
setParser($parser)
| Parameter Name | Default Value | Description |
|---|---|---|
| $parser | XML parser resource handle |
Defined in
libraries/joomla/utilities/simplexml.php
Importing
jimport( 'joomla.utilities.simplexml' );
Source Body
function setParser($parser) {
$this->_parser = $parser;
}
Examples
Code Examples