lib/rdf/rdfa/reader/rexml.rb
##
# Retrieve XMLNS definitions for this element
#
# @return [Hash{String => String}]
Retrieve XMLNS definitions for this element
Retrieve XMLNS definitions for this element
def namespaces
          ns_decls = {}
          @node.attributes.each do |name, attr|
            next unless name =~ /^xmlns(?:\:(.+))?/
            ns_decls[$1] = attr
          end
          ns_decls
        end
def namespaces ns_decls = { } @node . attributes . each do | name , attr | next unless name =~ / ^xmlns(?: \: (.+))? / ns_decls [ $1 ] = attr end ns_decls end
Retrieve XMLNS definitions for this element
Retrieve XMLNS definitions for this element
None
Hash{String => String}