xml search
this is an attempt, i need some guidance/advice how i should search for excact word in text/setences in the xml
I put the whole xml's loaded as a string into an array
stringArray.push(testXML); //trace(stringArray)
then i split it and loop it to check if it matches the keyword.
and if is true i should get the trace... but i am not getting the result i want, when i know when certain word in a sentence should be TRUE,
i aint get the trace : /
for (var s:int = 0; s < stringArray.length; s++) {
var condition:Boolean = new Boolean();
var searchArray:Array = stringArray.split(" "); //trace(searchArray);
for (var r:int = 0; r < searchArray.length; r++) {
if (searchArray
trace("true");
}
} // end for r
}
any suggestions?