Skip to content

RDF::documentFromXMLString

Mo McRoberts edited this page Aug 7, 2011 · 3 revisions

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)

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.

Return Value

On success, returns a new [[RDFDocument]] instance.

Clone this wiki locally