def _schema_builder(urn_nid, method, attributes):
 soap = ET.Element('soap:Body', {'xmlns:m': ('https://durabledns.com/services/dns/%s' % method)})
 urn = ET.SubElement(soap, ('urn:%s:%s' % (urn_nid, method)))
 for attribute in attributes:
  ET.SubElement(urn, ('urn:%s:%s' % (urn_nid, attribute)))
 return soap

def _schema_builder ( urn_nid , method , attributes ) : soap = ET . Element ( 'soap:Body' , { 'xmlns:m' : ( 'https://durabledns.com/services/dns/%s' % method ) } ) urn = ET . SubElement ( soap , ( 'urn:%s:%s' % ( urn_nid , method ) ) ) for attribute in attributes : ET . SubElement ( urn , ( 'urn:%s:%s' % ( urn_nid , attribute ) ) ) return soap
return a xml schema used to do an api request .