oOption.text = selections[i].getElementsByTagName( 'Label' )[0].firstChild.data; oOption.value = selections[i].getElementsByTagName( 'Value' )[0].firstChild.data; 
var oLabel = selections[i].getElementsByTagName( 'Label' )[0].firstChild; if( oLabel ) oOption.text = oLabel.data; else oOption.text = "";  var oValue = selections[i].getElementsByTagName( 'Value' )[0].firstChild; if( oValue ) oOption.value = oValue.data; else oOption.value = ""; 
	processCascadingParameter : function( message )	{		if( !message || !this.__parameterGroup ) return;				//alert( birtSoapRequest.prettyPrintXML( message ) );		var soapBody = message.getElementsByTagName( 'soapenv:Body' )[ 0 ];		if ( !soapBody )		{			soapBody = message.getElementsByTagName( 'Body' )[ 0 ];		}				if ( soapBody )		{			for ( var i = 0; i < soapBody.childNodes.length; i++ )			{				if ( soapBody.childNodes[i].nodeType == 1 ) // Need to use NodeType definition.				{					if ( soapBody.childNodes[i].tagName == 'soapenv:Fault' )					{						// error message						this.__handleErrorMessage( soapBody.childNodes[i] );					}					else					{						var datas = soapBody.childNodes[i].getElementsByTagName( 'Data' );						if( !datas || datas.length<=0 ) return;												var data = datas[0];//assume there is only one data						var cascade_param = data.getElementsByTagName( 'CascadeParameter' )[0];//assume there is only one cascadeparameter						var selectionLists = data.getElementsByTagName( 'SelectionList' );						if ( !selectionLists )						{							return;						}												for ( var k = 0; k < selectionLists.length; k++ )						{							var paramName = selectionLists[k].getElementsByTagName( 'Name' )[0].firstChild.data;							var selections = selectionLists[k].getElementsByTagName( 'Selections' );														var paramId = this.__parameterGroup.getParameterIdByName( paramName );							var append_selection = document.getElementById( paramId );							var len = append_selection.options.length;														append_selection.value = "";														// Clear our selection list.							for( var i = 0, index = 0; i < len; i++ )							{								if ( append_selection.options[index].value == "" )								{									index++;									continue;								}								append_selection.remove( index );							}														// Add new options based on server response.							for( var i = 0; i < selections.length; i++ )							{								if ( !selections[i].firstChild )								{									continue;								}												var oOption = document.createElement( "OPTION" );								oOption.text = selections[i].getElementsByTagName( 'Label' )[0].firstChild.data;								oOption.value = selections[i].getElementsByTagName( 'Value' )[0].firstChild.data;								append_selection.options.add( oOption );							}						}											}								}			}		}				// reset parameter group		this.__parameterGroup = null;	},
9270	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9270/ec235b48e95898fb8a3b248c75060e1cc5de3e0d/SoapResponseHelper.js/buggy/viewer/org.eclipse.birt.report.viewer/birt/webcontent/birt/ajax/taglib/SoapResponseHelper.js