# File lib/soap/encodingstyle/literalHandler.rb, line 112
  def decode_tag(ns, elename, attrs, parent)
    @textbuf.clear
    if attrs[XSD::AttrNilName] == 'true'
      o = SOAPNil.decode(elename)
    else
      o = SOAPElement.decode(elename)
    end
    if definedtype = attrs[XSD::AttrTypeName]
      o.type = ns.parse(definedtype)
    end
    o.parent = parent
    o.extraattr.update(attrs)
    decode_parent(parent, o)
    o
  end