lib/rdf/rdfxml/reader.rb
# Extract the XMLNS mappings from an element
Extract the XMLNS mappings from an element
Extract the XMLNS mappings from an element
def extract_mappings(element, &cb)
        mappings = {}
        element.namespaces.each do |prefix, value|
          value = base.join(value)
          mappings[prefix] = value
          cb.call(prefix, value) if block_given?
        end
        mappings
      end
def extract_mappings ( element , & cb ) mappings = { } element . namespaces . each do | prefix , value | value = base . join ( value ) mappings [ prefix ] = value cb . call ( prefix , value ) if block_given? end mappings end
Extract the XMLNS mappings from an element
Extract the XMLNS mappings from an element
# look for xmlns
element
<not_specific>
cb
<not_specific>