def visit_stroke(self, node): node.xml = "<stroke>" + xstr(node.stroke) + "</stroke>"
def visit_interval(self, node): node.xml = "<time>" + xstr(node.minutes * 60 + node.seconds) + "</time>"
def visit_zone(self, node): node.xml = "<zone>" + xstr(node.zone) + "</zone>"
def visit_reps(self, node): node.xml = "<reps>" + xstr(node.reps) + "</reps>"
def visit_distance(self, node): node.xml = "<distance>" + xstr(node.distance) + "</distance>"
def visit_interval(self, node): node.json = '"time": ' + xstr(node.minutes * 60 + node.seconds)
def visit_zone(self, node): if node.zone: node.json = '"zone": "' + xstr(node.zone) + '",' else: node.json = '"zone": null, '
def visit_stroke(self, node): if node.stroke: node.json = '"stroke": "' + xstr(node.stroke) + '", ' else: node.json = '"stroke": null, '
def visit_distance(self, node): node.json = '"distance": ' + xstr(node.distance) + ', '
def visit_reps(self, node): node.json = '"reps": ' + xstr(node.reps) + ', '