code: def XML(content, source=None):
      
      try:
          tree = ET.XML(content)
      except ET.ParseError as err:
          x_parse_error(err, content, source)
      return tree
docs: Parses the XML text using the ET.XML function, but handling the ParseError in
      a user-friendly way.