def printSecScanAttributes(secscan):
    """
    Prints the header for the SecurityScan xml
    file in a dictionary type format:

    Computer Name:  DOMAIN\computer
    IP Address:  192.168.1.2
    Scan Date:  2004-01-01 hh:mm:ss
    Security Assessment: 2
    """
    domain = secscan.attributes["Domain"]
    machine = secscan.attributes["Machine"]
    ip = secscan.attributes["IP"]
    date = secscan.attributes["Date"]
    grade = secscan.attributes["Grade"]
	
    print "\n\n"
    print "Computer Name: " + domain.value + "\\" + machine.value
    print "IP Address: " + ip.value
    print "Scan Date: " + date.value
    print "Security Assessment: " + grade.value	
    print "\n\n"

    Prints the header for the SecurityScan xml
    file in a dictionary type format:

    Computer Name:  DOMAIN\computer
    IP Address:  192.168.1.2
    Scan Date:  2004-01-01 hh:mm:ss
    Security Assessment: 2
    
recipes/Python/305302_mbsa2txt/recipe-305302.py