def print_rec(rec, format=<NUM_LIT:1>, tags=None):
if tags is None:<EOL><INDENT>tags = []<EOL><DEDENT>if format == <NUM_LIT:1>:<EOL><INDENT>text = record_xml_output(rec, tags)<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>return text<EOL>
Print a record.

:param format: 1 XML, 2 HTML (not implemented)
:param tags: list of tags to be printed