def _convert_xml_to_page_ranges(response):
if response is None or response.body is None:<EOL><INDENT>return None<EOL><DEDENT>page_list = list()<EOL>list_element = ETree.fromstring(response.body)<EOL>for page_range_element in list_element:<EOL><INDENT>if page_range_element.tag == '<STR_LIT>':<EOL><INDENT>is_cleared = False<EOL><DEDENT>elif page_range_element.tag == '<STR_LIT>':<EOL><INDENT>is_cleared = True<EOL><DEDENT>else:<EOL><INDENT>pass  <EOL><DEDENT>page_list.append(<EOL>PageRange(<EOL>int(page_range_element.findtext('<STR_LIT>')),<EOL>int(page_range_element.findtext('<STR_LIT>')),<EOL>is_cleared<EOL>)<EOL>)<EOL><DEDENT>return page_list<EOL>
<?xml version="1.0" encoding="utf-8"?>
<PageList>
   <PageRange> 
      <Start>Start Byte</Start> 
      <End>End Byte</End> 
   </PageRange> 
   <ClearRange> 
      <Start>Start Byte</Start> 
      <End>End Byte</End> 
   </ClearRange> 
   <PageRange> 
      <Start>Start Byte</Start> 
      <End>End Byte</End> 
   </PageRange> 
</PageList>