code: def dump_nodes(self):
          
          xmldata = self._uiauto.dump()
          dom = xml.dom.minidom.parseString(xmldata.encode('utf-8'))
          root = dom.documentElement
          nodes = root.getElementsByTagName('node')
          ui_nodes = []
          for node in nodes:
              ui_nodes.append(self._parse_xml_node(node))
          return ui_nodes
docs: Dump current screen UI to list
          Returns:
              List of UINode object, For
              example:
  
              [UINode(
                  bounds=Bounds(left=0, top=0, right=480, bottom=168),
                  checkable=False,
                  class_name='android.view.View',
                  text='',
                  resource_id='',
                  package='com.sonyericsson.advancedwidget.clock')]