rem: var xmlDocument = domParser.parseFromString( "<libical/>", "text/xml" ); 
add: var xmlDocument = domParser.parseFromString( "<libical/>", "application/xml" ); 
context: function getXmlDocument ( eventList ){    // use the domparser to create the XML     var domParser = new DOMParser;    // start with one tag    var xmlDocument = domParser.parseFromString( "<libical/>", "text/xml" );        // get the top tag, there will only be one.    var topNodeList = xmlDocument.getElementsByTagName( "libical" );    var topNode = topNodeList[0];    // add each event as an element     for( var index = 0; index < eventList.length; ++index )    {        var calendarEvent = eventList[ index ];                var eventNode = this.makeXmlNode( xmlDocument, calendarEvent );                topNode.appendChild( eventNode );    }    return xmlDocument;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/bfa5e9c1611eb9a460700aa8add8d076edb24849/importExport.js/buggy/calendar/resources/content/importExport.js