parameters: (dom, filename)
docstring: Write the given dom to filename.
docstring_summary: Write the given dom to filename.
docstring_tokens: Write the given dom to filename .
function: def WriteDomToFile(dom, filename):
    """Write the given dom to filename."""
    build_utils.MakeDirectory(os.path.dirname(filename))
    with codecs.open(filename, 'w', 'utf-8') as f:
      dom.writexml(f, '', '  ', '\n', encoding='utf-8')
function_tokens: def WriteDomToFile ( dom , filename ) : build_utils . MakeDirectory ( os . path . dirname ( filename ) ) with codecs . open ( filename , 'w' , 'utf-8' ) as f : dom . writexml ( f , '' , '  ' , '\n' , encoding = 'utf-8' )