code: def lxml(self):
          '''
          render the record into a lxml document.
          this is useful for querying data from the record using xpath, etc.
  
          note: lxml must be installed.
  
          Returns:
            lxml.etree.ElementTree: the rendered and parsed xml document.
  
          Raises:
            ImportError: if lxml is not installed.
          '''
          import lxml.etree
          return lxml.etree.fromstring((e_views.XML_HEADER + self.xml()).encode('utf-8')f lxml(self):
          '''
          render the record into a lxml document.
          this is useful for querying data from the record using xpath, etc.
  
          note: lxml must be installed.
  
          Returns:
            lxml.etree.ElementTree: the rendered and parsed xml document.
  
          Raises:
            ImportError: if lxml is not installed.
          '''
          import lxml.etree
          return lxml.etree.fromstring((e_views.XML_HEADER + self.xml()).encode('utf-8'))
docs: render the record into a lxml document.
          this is useful for querying data from the record using xpath, etc.
  
          note: lxml must be installed.
  
          Returns:
            lxml.etree.ElementTree: the rendered and parsed xml document.
  
          Raises:
            ImportError: if lxml is not installed.