#	XML documents must have a root element
#	XML elements must have a closing tag
#	XML tags are case sensitive
#	XML elements must be properly nested
#	XML attribute values must be quoted

class XML_Checker(object):
	""" This class contains all the static methods necessary to check the xml file"""

  	def __init__(self, filename):
  		if __xml_file_check(filename):
  			#This variable will hold the object that reads through the XML file
  			self.xml_file = open(filename, "r")
  			#This variable will be used as a dictionary to store the element names
  			self.tag_list = {}
  			#This variable will store the string name of the current tag that the file stream is on
  			self.current_tag = ""
  			
  	#This static method checks the filename to see if it ends with a ".xml" exstension
  	#If True, then the file is supposed to be an XML file
  	#If False, then either the file's extension was not added or the file is not an XML file
	def __xml_file_check(filename):
		if filename[-4:] != ".xml":
  			return False
  		else:
  			return True
  
  	#This method is used to fill the tag list with an element tag from the XML that we are
  	#currently looking at. The tag list will be a ditionary that holds the name of the 
  	#element and its nest level in the XML file
	def __fill_tag_list(tag_name, level):
 		self.tag_list[tag_name] = level
 	
	def xml_check_attrib():
		pass
    
	def xml_check_nest():
    	pass
    
	def xml_check_case():
    	pass
    
	def xml_root_check():
		pass
	  
	def xml_close_check():
    	pass

#	XML documents must have a root element
#	XML elements must have a closing tag
#	XML tags are case sensitive
#	XML elements must be properly nested
#	XML attribute values must be quoted

class XML_Checker(object):
	""" This class contains all the static methods necessary to check the xml file"""

  	def __init__(self, filename):
  		if __xml_file_check(filename):
  			#This variable will hold the object that reads through the XML file
  			self.xml_file = open(filename, "r")
  			#This variable will be used as a dictionary to store the element names
  			self.tag_list = {}
  			#This variable will store the string name of the current tag that the file stream is on
  			self.current_tag = ""
  			
  	#This static method checks the filename to see if it ends with a ".xml" exstension
  	#If True, then the file is supposed to be an XML file
  	#If False, then either the file's extension was not added or the file is not an XML file
	def __xml_file_check(filename):
		if filename[-4:] != ".xml":
  			return False
  		else:
  			return True
  
  	#This method is used to fill the tag list with an element tag from the XML that we are
  	#currently looking at. The tag list will be a ditionary that holds the name of the 
  	#element and its nest level in the XML file
	def __fill_tag_list(tag_name, level):
 		self.tag_list[tag_name] = level
 	
 	def check_for_encoding():
 		pass
 	
	def xml_check_attrib():
		pass
    
	def xml_check_nest():
    	pass
    
	def xml_check_case():
    	pass
    
	def xml_root_check():
		pass
	  
	def xml_close_check():
    	pass

Update XML_Checker.py