\Horde_Kolab_Format_Xml_Parser

Handles parsing the provided XML input.

Copyright 2007-2009 Klarälvdalens Datakonsult AB Copyright 2010-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Summary

Methods
Properties
Constants
__construct()
getDocument()
parse()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_parseXml()
$_document
N/A

Properties

$_document

$_document : \DOMDocument

The XML parser.

Type

\DOMDocument

Methods

__construct()

__construct(\DOMDocument  $document) 

Constructor.

Parameters

\DOMDocument $document

The XML parser.

getDocument()

getDocument() : \DOMDocument

Simply return the DOMDocument without parsing any data.

Returns

\DOMDocument —

The DOM document.

parse()

parse(string  $input, array  $options = array()) : \DOMDocument

Load an object based on the given XML string.

Parameters

string $input

The XML of the message as string.

array $options

Additional options when parsing the XML.

- relaxed: Relaxed error checking (default: false)

Throws

\Horde_Kolab_Format_Exception

If parsing the XML data failed.

Returns

\DOMDocument —

The DOM document.

_parseXml()

_parseXml(string  $input, array  $options = array()) : \DOMDocument

Parse the XML string. The root node is returned on success.

Parameters

string $input

The XML of the message as string.

array $options

Additional options when parsing the XML.

Throws

\Horde_Kolab_Format_Exception

If parsing the XML data failed.

Returns

\DOMDocument —

The DOM document.