(self)
return self.xml
introspect the session and create a session xml from it
introspect the session and create a session xml from it
introspect the session and create a session xml from it
def introspect(self):
        '''introspect the session and create a session xml from it'''
        # create an xml document
        xml_impl = getDOMImplementation()
        self.doc = xml_impl.createDocument(None, "session", None)
        self.root = self.doc.documentElement

        # go through the tactic
        tactic_nodes = self.util.get_all_tactic_nodes() 
        tactic_nodes.sort()
        for tactic_node in tactic_nodes:

            node_data = NodeData(tactic_node)
            ref_node = node_data.get_ref_node()

            # set some more info on the ref node
            ref_node.setAttribute("tactic_node", tactic_node)
            self.root.appendChild(ref_node)

        self.xml = self.doc.toprettyxml()
        return self.xml
def introspect ( self ) : # create an xml document xml_impl = getDOMImplementation ( ) self . doc = xml_impl . createDocument ( None , "session" , None ) self . root = self . doc . documentElement # go through the tactic tactic_nodes = self . util . get_all_tactic_nodes ( ) tactic_nodes . sort ( ) for tactic_node in tactic_nodes : node_data = NodeData ( tactic_node ) ref_node = node_data . get_ref_node ( ) # set some more info on the ref node ref_node . setAttribute ( "tactic_node" , tactic_node ) self . root . appendChild ( ref_node ) self . xml = self . doc . toprettyxml ( ) return self . xml