예제 #1
0
 def xmlrpc_get_accessible_doc(self):
     if not self._top_frame:
         print 'ERROR: Did not get top accessible frame'
         return ''
     
     tree = self._find_root_doc(self._top_frame)
     if tree:
         xml_tree = specular_accessible_from_accessible(tree).documentElement.toxml()
     else:
         print 'no xml_tree'
         xml_tree = ''
     return xml_tree
예제 #2
0
    def xmlrpc_get_accessible_match(self, acc_node):
        if not self._top_frame:
            print 'ERROR: Did not get top accessible frame'
            return ''

        tree = self._find_root_doc(self._top_frame)
        doc_tree = specular_accessible_from_accessible(tree)
        
        found = doc_tree.find_subtree(
            specular_accessible_from_string(acc_node))
        if found:
            return found.toxml()
        else:
            return ''