Method: WSDL::XMLSchema::Include#parse_attr

Defined in:
lib/wsdl/xmlSchema/include.rb

#parse_attr(attr, value) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/wsdl/xmlSchema/include.rb', line 31

def parse_attr(attr, value)
  case attr
  when SchemaLocationAttrName
    @schemalocation = URI.parse(value.source)
    if @schemalocation.relative?
      @schemalocation = parent.location + @schemalocation
    end
    @content = import(@schemalocation)
    @schemalocation
  else
    nil
  end
end