#!/usr/bin/env python

import xml.dom.minidom
import sys

def handleQuestions(questions):
    screens = questions.getElementsByTagName("advmark")
    for screen in screens:
        for qastep in screen.getElementsByTagName("qastep"):
            for attr in qastep.attributes:
                print attr


    


dom = xml.dom.minidom.parse(open(sys.argv[1]))
handleQuestions(dom)
