-
Notifications
You must be signed in to change notification settings - Fork 3
RDF::documentFromXMLString
Mo McRoberts edited this page Aug 7, 2011
·
3 revisions
Create a new [[RDFDocument]] given a string containin an RDF/XML
document.
uses('rdf');
public static function RDFDocument [[RDF]]::documentFromXMLString(string [in] $document, string [in,optional] $location = null)
Parses the RDF/XML contained within $document and passes the
resulting DOM tree to [[RDF::documentFromDOM]](), returning the resulting
[[RDFDocument]].
| 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. |
On success, returns a new [[RDFDocument]] instance.