def process_xml(self, xml):
root = objectify.fromstring(xml, parser = etree.XMLParser())<EOL>for child in root.getchildren():<EOL><INDENT>if '<STR_LIT:title>' in child.tag:<EOL><INDENT>self.title = child.text<EOL><DEDENT>if '<STR_LIT:description>' in child.tag:<EOL><INDENT>self.description = child.text<EOL><DEDENT>if '<STR_LIT>' in child.tag:<EOL><INDENT>self.secure_launch_url = child.text<EOL><DEDENT>elif '<STR_LIT>' in child.tag:<EOL><INDENT>self.launch_url = child.text<EOL><DEDENT>if '<STR_LIT>' in child.tag:<EOL><INDENT>self.icon = child.text<EOL><DEDENT>if '<STR_LIT>' in child.tag:<EOL><INDENT>self.secure_icon = child.text<EOL><DEDENT>if '<STR_LIT>' in child.tag:<EOL><INDENT>self.cartridge_bundle = child.attrib['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in child.tag:<EOL><INDENT>self.cartridge_icon = child.atrib['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in child.tag:<EOL><INDENT>for v_child in child.getchildren():<EOL><INDENT>if '<STR_LIT:code>' in v_child.tag:<EOL><INDENT>self.vendor_code = v_child.text<EOL><DEDENT>if '<STR_LIT:description>' in v_child.tag:<EOL><INDENT>self.vendor_description = v_child.text<EOL><DEDENT>if '<STR_LIT:name>' in v_child.tag:<EOL><INDENT>self.vendor_name = v_child.text<EOL><DEDENT>if '<STR_LIT:url>' in v_child.tag:<EOL><INDENT>self.vendor_url = v_child.text<EOL><DEDENT>if '<STR_LIT>' in v_child.tag:<EOL><INDENT>for c_child in v_child:<EOL><INDENT>if '<STR_LIT:name>' in c_child.tag:<EOL><INDENT>self.vendor_contact_name = c_child.text<EOL><DEDENT>if '<STR_LIT:email>' in c_child.tag:<EOL><INDENT>self.vendor_contact_email = c_child.text<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if '<STR_LIT>' in child.tag:<EOL><INDENT>for custom_child in child.getchildren():<EOL><INDENT>self.custom_params[custom_child.attrib['<STR_LIT:name>']] =custom_child.text<EOL><DEDENT><DEDENT>if '<STR_LIT>' in child.tag:<EOL><INDENT>platform = child.attrib['<STR_LIT>']<EOL>properties = {}<EOL>for ext_child in child.getchildren():<EOL><INDENT>if '<STR_LIT>' in ext_child.tag:<EOL><INDENT>properties[ext_child.attrib['<STR_LIT:name>']] = ext_child.text<EOL><DEDENT>elif '<STR_LIT>' in ext_child.tag:<EOL><INDENT>opt_name = ext_child.attrib['<STR_LIT:name>']<EOL>options = {}<EOL>for option_child in ext_child.getchildren():<EOL><INDENT>options[option_child.attrib['<STR_LIT:name>']] =option_child.text<EOL><DEDENT>properties[opt_name] = options<EOL><DEDENT><DEDENT>self.set_ext_params(platform, properties)<EOL><DEDENT><DEDENT>
Parse tool configuration data out of the Common Cartridge LTI link XML.