def field_xml_output(field, tag):
marcxml = []<EOL>if field[<NUM_LIT:3>]:<EOL><INDENT>marcxml.append('<STR_LIT>' %<EOL>(tag, MathMLParser.html_to_text(field[<NUM_LIT:3>])))<EOL><DEDENT>else:<EOL><INDENT>marcxml.append('<STR_LIT>' %<EOL>(tag, field[<NUM_LIT:1>], field[<NUM_LIT:2>]))<EOL>marcxml += [_subfield_xml_output(subfield) for subfield in field[<NUM_LIT:0>]]<EOL>marcxml.append('<STR_LIT>')<EOL><DEDENT>return '<STR_LIT:\n>'.join(marcxml)<EOL>
Generate the XML for field 'field' and returns it as a string.