def get_xml_version(version):
 if (version is None):
  return 1
 return int(version.split('.')[0])

def get_xml_version ( version ) : if ( version is None ) : return 1 return int ( version . split ( '.' ) [ 0 ] )
determines which xml schema to use based on the client api version .