RDF::documentFromDOM
Create a new RDFDocument given an RDF/XML DOMElement.
Synopsis
uses('rdf');
public static function RDFDocument RDF::documentFromDOM(DOMElement [in] $dom, string [in,optional] $location = null)
Description
Construct a new RDFDocument given the root element of an RDF/XML
document, such as that returned by dom_import_simplexml().
Parameters
| Name | Direction | Type | Description |
|---|---|---|---|
$dom
| in | DOMElement | The root element of the RDF/XML document |
$location
| in,optional | string | The canonical source URL of the document. |
Return Value
On success, returns a new RDFDocument instance.