#NEWLINE# def parse( inFileName ) : #NEWLINE# #INDENT# doc = parsexml_ ( inFileName ) #NEWLINE# rootNode = doc . getroot ( ) #NEWLINE# ( rootTag , rootClass ) = get_root_tag ( rootNode ) #NEWLINE# if ( rootNode is None ) : #NEWLINE# #INDENT# rootTag = 'Windows_Hook' #NEWLINE# rootClass = WindowsHookObjectType #NEWLINE# #UNINDENT# rootObj = rootClass . factory ( ) #NEWLINE# rootObj . build ( rootNode ) #NEWLINE# doc = None #NEWLINE# sys . stdout . write ( '<?xml version="1.0" ?>\n' ) #NEWLINE# rootObj . export ( sys . stdout . write , 0 , name_ = rootTag , namespacedef_ = '' , pretty_print = True ) #NEWLINE# return rootObj