Class yii\httpclient\XmlParser

Inheritanceyii\httpclient\XmlParser » yii\base\BaseObject
Implementsyii\httpclient\ParserInterface
Available since version2.0

XmlParser parses HTTP message content as XML.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
parse() Parses given HTTP response instance. yii\httpclient\XmlParser

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
convertXmlToArray() Converts XML document to array. yii\httpclient\XmlParser

Method Details

convertXmlToArray() protected method

Converts XML document to array.

protected array convertXmlToArray ( $xml )
$xml string|SimpleXMLElement

Xml to process.

return array

XML array representation.

parse() public method

Parses given HTTP response instance.

public mixed parse ( yii\httpclient\Response $response )
$response yii\httpclient\Response

HTTP response instance.

return mixed

Parsed content data.