lib/rdf/rdfxml/reader/nokogiri.rb in rdf-rdfxml-0.3.6 vs lib/rdf/rdfxml/reader/nokogiri.rb in rdf-rdfxml-0.3.7
- old
+ new
@@ -126,9 +126,17 @@
end
def namespace
@def_namespace || @node.namespace
end
+ else
+ def add_namespace(prefix, href)
+ @node.add_namespace(prefix, href)
+ end
+
+ def namespace
+ @node.namespace
+ end
end
# URI of namespace + node_name
def uri
ns = namespace || RDF::XML.to_s