You are here

public function EasyRdf_Literal_XML::domParse in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/XML.php \EasyRdf_Literal_XML::domParse()

Parse the XML literal into a DOMDocument

@link http://php.net/manual/en/domdocument.loadxml.php

Return value

object DOMDocument

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/XML.php, line 65

Class

EasyRdf_Literal_XML
Class that represents an RDF Literal of datatype rdf:XMLLiteral

Code

public function domParse() {
  $dom = new DOMDocument();
  $dom
    ->loadXML($this->value);
  return $dom;
}