@staticmethod<EOL><INDENT>def get_text(item, tag, default=False):<DEDENT>
try:<EOL><INDENT>xmlnode = item.getElementsByTagName(tag)[<NUM_LIT:0>].firstChild<EOL><DEDENT>except IndexError as e:<EOL><INDENT>if default is not False:<EOL><INDENT>return default<EOL><DEDENT>else:<EOL><INDENT>raise IndexError(e)<EOL><DEDENT><DEDENT>if xmlnode is not None:<EOL><INDENT>return str(xmlnode.nodeValue)<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>
returns text content of an xml tag