def __init__(self, elem):
    '.'
    self.name = elem.tag.split('}')[1]
    self.methods = []
    for resource in elem.findall((((ns('DCPType/') + ns('HTTP/')) + ns('Get/')) + ns('OnlineResource'))):
        url = resource.attrib['{http://www.w3.org/1999/xlink}href']
        self.methods.append({'type': 'Get', 'url': url})
    for resource in elem.findall((((ns('DCPType/') + ns('HTTP/')) + ns('Post/')) + ns('OnlineResource'))):
        url = resource.attrib['{http://www.w3.org/1999/xlink}href']
        self.methods.append({'type': 'Post', 'url': url})
.
def __init__(self, elem):
    
    selfname = elemtagsplit('}')[1]
    selfmethods = []
    for resource in elemfindall((((ns('DCPType/') + ns('HTTP/')) + ns('Get/')) + ns('OnlineResource'))):
        url = resourceattrib['{http://wwww3org/1999/xlink}href']
        selfmethodsappend({'type': 'Get', 'url': url})
    for resource in elemfindall((((ns('DCPType/') + ns('HTTP/')) + ns('Post/')) + ns('OnlineResource'))):
        url = resourceattrib['{http://wwww3org/1999/xlink}href']
        selfmethodsappend({'type': 'Post', 'url': url})