def execute(my):
# create an xml document
xml_impl = getDOMImplementation()
doc = xml_impl.createDocument(None, "session", None)
root = doc.documentElement
# go through the tactic
tactic_nodes = my.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()
root.appendChild(ref_node)
my.xml = doc.toxml()
return my.xml
评论列表
文章目录