Comparing version 0.1.2 to 0.1.3
@@ -569,2 +569,12 @@ /** | ||
if (isNode) { | ||
// Node.js handles the XMLDOM dependency | ||
// use options.parseXml in the browser if you want to parse a string | ||
var xmldom = require('xmldom'); | ||
options.parseXml = function (toparse) { | ||
return (new xmldom.DOMParser().parseFromString(toparse)); | ||
}; | ||
} | ||
this.process = function (toparse, callback, base, filter, done) { | ||
@@ -571,0 +581,0 @@ if (typeof toparse === 'string') { |
{ | ||
"name": "rdf-ext", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Implements the RDF-Ext spec plus parsers (JSON-LD, RDF/XML, Turtle), serializers (JSON-LD, N-Triples) and stores (in memory, LDP, SPARQL)", | ||
@@ -5,0 +5,0 @@ "main": "rdf-ext.js", |
@@ -9,3 +9,2 @@ var config = {}; | ||
// RDF Interfaces for node.js https://github.com/Acubed/node-rdf | ||
// Doesn't support the complete RDF Interfaces API | ||
//config.rdf = require('rdf').environment; | ||
@@ -12,0 +11,0 @@ |
@@ -46,4 +46,3 @@ var | ||
card = fs.readFileSync(__dirname + '/support/card.xml').toString(), | ||
parseXml = function (toparse) { return (new xmldom.DOMParser().parseFromString(toparse));}, | ||
parser = new rdf.RdfXmlParser({parseXml: parseXml}); | ||
parser = new rdf.RdfXmlParser(); | ||
@@ -50,0 +49,0 @@ parser.parse(card, function(graph) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69851
1802