Hey everyone,

I am developing an application in AS3 for Android devices and I am choosing to use XML for setting storage...

Unfortunately I have been able to test using the contains method whether there is the correct text in the XML file I have tried to use this...

Code:
	var updates:Boolean = true;
	var k:Number = 0
	for(k = 0; k < 6; k++){
		if(localXML.Party[k]){
		if(localXML.Party[k].contains("<name>" + List.selectedItem.label + "</name>")){
	   		updates = false;
			trace("TRIGGERED");
	   }
		}
	}
	if(updates){
		trace("NOT TRIGGERED");
	localXML.prependChild(<Party></Party>);
	localXML.Party[0].prependChild(<Name></Name>);
	localXML.Party[0].Name = List.selectedItem.label;
	}
Which is never triggered does anyone have any ideas on how I may fix this?

Thanks,
Kriogenic.