(file_obj)
return etree.parse(file_obj, parser)
Reads xml from a file and returns an `etree.Element`.

  Compared to the `etree.fromstring()`, this function removes the whitespace in
  the xml file. This means later on, a user can pretty print the `etree.Element`
  with `etree.tostring(element, pretty_print=True)`.

  Args:
    file_obj: A file or file-like object.

  Returns:
    `etree.Element` of the xml file.
Reads xml from a file and returns an `etree.Element`.
Reads xml from a file and returns an etree . Element .
def parse(file_obj):
  """Reads xml from a file and returns an `etree.Element`.

  Compared to the `etree.fromstring()`, this function removes the whitespace in
  the xml file. This means later on, a user can pretty print the `etree.Element`
  with `etree.tostring(element, pretty_print=True)`.

  Args:
    file_obj: A file or file-like object.

  Returns:
    `etree.Element` of the xml file.
  """
  parser = etree.XMLParser(remove_blank_text=True)
  return etree.parse(file_obj, parser)
def parse ( file_obj ) : parser = etree . XMLParser ( remove_blank_text = True ) return etree . parse ( file_obj , parser )