I have an island which says: <xml id="myXML" ondatasetcomplete="relatedRelationshipsComplete()" src async="false"></xml>
Now, I want to do the processing in the same function where I set the src.
I know I have to wait for the data to get loaded. Can something be put in between: myXML.src = "URL"; and var tmp = myXML.selectSingleNode("//MYNODE"); so that the code waits until the data is loaded and then carries on? I am putting an alert which solves the purpose but I do not want users to click on an alert and then view the data on the page