(self, case)
return lxml.parse(BytesIO(case.to_xml('2.0', include_case_on_closed=True))).getroot()
Encapsulates the version passed to `CommCareCase.to_xml` and
        the temporary hack of re-parsing it. TODO: expose a direct etree
        encoding in casexml?
Encapsulates the version passed to `CommCareCase.to_xml` and
        the temporary hack of re-parsing it. TODO: expose a direct etree
        encoding in casexml?
Encapsulates the version passed to CommCareCase . to_xml and the temporary hack of re - parsing it . TODO : expose a direct etree encoding in casexml?
def case_to_etree(self, case):
        '''
        Encapsulates the version passed to `CommCareCase.to_xml` and
        the temporary hack of re-parsing it. TODO: expose a direct etree
        encoding in casexml?
        '''
        return lxml.parse(BytesIO(case.to_xml('2.0', include_case_on_closed=True))).getroot()
def case_to_etree ( self , case ) : return lxml . parse ( BytesIO ( case . to_xml ( '2.0' , include_case_on_closed = True ) ) ) . getroot ( )