def _add_namespace(marc_xml):
dom = marc_xml<EOL>if isinstance(dom, basestring):<EOL><INDENT>dom = dhtmlparser.parseString(marc_xml)<EOL><DEDENT>root = dom.find("<STR_LIT:root>")<EOL>if root:<EOL><INDENT>root[<NUM_LIT:0>].params = {}<EOL><DEDENT>for record in dom.find("<STR_LIT>"):<EOL><INDENT>record.params = {}<EOL><DEDENT>collections = dom.find("<STR_LIT>")<EOL>if not collections:<EOL><INDENT>record = dom.find("<STR_LIT>")[<NUM_LIT:0>]<EOL>return XML_TEMPLATE.replace("<STR_LIT>", str(record))<EOL><DEDENT>for col in collections:<EOL><INDENT>col.params["<STR_LIT>"] = "<STR_LIT>"<EOL>col.params["<STR_LIT>"] = "<STR_LIT>"<EOL>col.params["<STR_LIT>"] = "<STR_LIT>" +"<STR_LIT>"<EOL><DEDENT>return str(dom)<EOL>
Add proper XML namespace to the `marc_xml` record.

Args:
    marc_xml (str): String representation of the XML record.

Returns:
    str: XML with namespace.