Overview

Namespaces

  • None
  • PHP

Classes

  • RESTian
  • RESTian_Application_Json_Parser
  • RESTian_Application_Serialized_Php_Parser
  • RESTian_Application_Xml_Parser
  • RESTian_Auth_Provider_Base
  • RESTian_Base
  • RESTian_Basic_Http_Auth_Provider
  • RESTian_Client
  • RESTian_Http_Agent_Base
  • RESTian_Not_Applicable_Provider
  • RESTian_Parser_Base
  • RESTian_Php_Curl_Http_Agent
  • RESTian_Request
  • RESTian_Response
  • RESTian_Service
  • RESTian_Settings
  • RESTian_Text_Csv_Parser
  • RESTian_Text_Html_Parser
  • RESTian_Text_Plain_Parser
  • RESTian_Var
  • RESTian_WordPress_Http_Agent
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class RESTian_Application_Xml_Parser

RESTian_Parser_Base
Extended by RESTian_Application_Xml_Parser
Located at parsers/application-xml-parser.php
Methods summary
public array|object
# parse( string|SimpleXMLElement $body )

Returns an object or array of stdClass objects from an XML string.

Returns an object or array of stdClass objects from an XML string.

Parameters

$body
string|SimpleXMLElement
$body

Returns

array|object
A(n array of) stdClass object(s) with structure dictated by the passed XML string.

Throws

Exception

See

https://www.bookofzeus.com/articles/convert-simplexml-object-into-php-array/
https://php.net/manual/en/function.simplexml-load-string.php
https://hakre.wordpress.com/2013/02/12/simplexml-type-cheatsheet/

Note

Leading and trailing space are trim()ed.

Overrides

RESTian_Parser_Base::parse()
Methods inherited from RESTian_Parser_Base
__construct()
Properties inherited from RESTian_Parser_Base
$request, $response
API documentation generated by ApiGen 2.8.0