You are here

public function RestWSFormatXML::unserialize in RESTful Web Services 7

Same name and namespace in other branches
  1. 7.2 restws.formats.inc \RestWSFormatXML::unserialize()
1 call to RestWSFormatXML::unserialize()
RestWSFormatXML::createResource in ./restws.formats.inc
Creates a new resource.

File

./restws.formats.inc, line 243
RESTful web services module formats.

Class

RestWSFormatXML
A formatter for XML.

Code

public function unserialize($data) {

  // Disable XML external entity expansion for security reasons.
  libxml_disable_entity_loader(TRUE);
  $xml = simplexml_load_string($data);
  return self::xmlToArray($xml);
}