Flowdock
method

filter_ns

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: XSD::XMLParser
filter_ns(ns, attrs) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/xsd/xmlparser.rb, line 24
  def filter_ns(ns, attrs)
    return attrs if attrs.nil? or attrs.empty?
    newattrs = {}
    attrs.each do |key, value|
      if (NSParseRegexp =~ key)
        # '' means 'default namespace'.
        tag = $1 || ''
        ns.assign(value, tag)
      else
        newattrs[key] = value
      end
    end
    newattrs
  end
Register or log in to add new notes.