def parseXML(xml):
 xmlObj = BeautifulSoup.BeautifulStoneSoup(xml, convertEntities=BeautifulSoup.BeautifulStoneSoup.XHTML_ENTITIES)
 if xmlObj:
  mainTag = xmlObj.find()
  if mainTag:
   return parseTags(mainTag)
 return None

def parseXML ( xml ) : xmlObj = BeautifulSoup . BeautifulStoneSoup ( xml , convertEntities = BeautifulSoup . BeautifulStoneSoup . XHTML_ENTITIES ) if xmlObj : mainTag = xmlObj . find ( ) if mainTag : return parseTags ( mainTag ) return None
parse a xml string .