-
Notifications
You must be signed in to change notification settings - Fork 3
RDF::documentFromDOM
Mo McRoberts edited this page Aug 7, 2011
·
3 revisions
Create a new [[RDFDocument]] given an RDF/XML [[DOMElement]].
uses('rdf');
public static function RDFDocument [[RDF]]::documentFromDOM(DOMElement [in] $dom, string [in,optional] $location = null)
Construct a new [[RDFDocument]] given the root element of an RDF/XML
document, such as that returned by dom_import_simplexml().
| 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. |
On success, returns a new [[RDFDocument]] instance.