PHP Class Horde_Kolab_Format_Xml_Parser, horde
Copyright 2007-2009 Klarälvdalens Datakonsult AB
Copyright 2010-2016 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not
receive this file, see
http://www.horde.org/licenses/lgpl21.
Show file
Open project: horde/horde
Class Usage Examples
Public Methods
Method |
Description |
|
__construct ( DOMDocument $document ) |
Constructor. |
|
getDocument ( ) : DOMDocument |
Simply return the DOMDocument without parsing any data. |
|
parse ( string $input, array $options = [] ) : DOMDocument |
Load an object based on the given XML string. |
|
Private Methods
Method |
Description |
|
_parseXml ( string $input, array $options = [] ) : DOMDocument |
Parse the XML string. The root node is returned on success. |
|
Method Details
__construct()
public method
public __construct ( DOMDocument $document ) |
$document |
DOMDocument |
The XML parser. |
getDocument()
public method
Simply return the DOMDocument without parsing any data.
public getDocument ( ) : DOMDocument |
return |
DOMDocument |
The DOM document. |
Load an object based on the given XML string.
public parse ( string $input, array $options = [] ) : DOMDocument |
$input |
string |
The XML of the message as string. |
$options |
array |
Additional options when parsing the XML.
- relaxed: Relaxed error checking (default: false)
|
return |
DOMDocument |
The DOM document. |