RDF::documentFromXMLString
Create a new RDFDocument given a string containin an RDF/XML
document.
Synopsis
uses('rdf');
public static function RDFDocument RDF::documentFromXMLString(string [in] $document, string [in,optional] $location = null, $curl = null)
Description
Parses the RDF/XML contained within $document and passes the
resulting DOM tree to RDF::documentFromDOM(), returning the resulting
RDFDocument.
Parameters
| Name | Direction | Type | Description |
|---|---|---|---|
$document
| in | string | The string containing the RDF/XML document. |
$location
| in,optional | string | The canonical source URL of the document. |
$curl
|
Return Value
On success, returns a new RDFDocument instance.