def _writeDocument(newFilename, clonedNode):
 makeSureDirectoryExists(newFilename)
 f = open(newFilename, 'w')
 f.write(clonedNode.toxml('utf-8'))
 f.close()

def _writeDocument ( newFilename , clonedNode ) : makeSureDirectoryExists ( newFilename ) f = open ( newFilename , 'w' ) f . write ( clonedNode . toxml ( 'utf-8' ) ) f . close ( )
serialize the given node to xml into the named file .