#NEWLINE# def GetChildNodeText( node , child_tag , default = '' ) : #NEWLINE# #INDENT# 'Finds child xml node with desired tag and returns its text.' #NEWLINE# for child in node . getchildren ( ) : #NEWLINE# #INDENT# if ( GetTag ( child ) == child_tag ) : #NEWLINE# #INDENT# return ( child . text or child_tag ) #NEWLINE# #UNINDENT# #UNINDENT# return default