262 |
traverseTree,query,result_handler)) |
traverseTree,query,result_handler)) |
263 |
{ |
{ |
264 |
debug("Unable to locate key "+query); |
debug("Unable to locate key "+query); |
265 |
|
result_handler(new Array()); |
266 |
} |
} |
267 |
// make sure of garbage collection |
// make sure of garbage collection |
268 |
xmldoc=null; |
xmldoc=null; |
276 |
loadData, i, result_handler)) |
loadData, i, result_handler)) |
277 |
{ |
{ |
278 |
debug("ERROR: Unable to locate data "+query); |
debug("ERROR: Unable to locate data "+query); |
279 |
|
result_handler(new Array()); |
280 |
} |
} |
281 |
// make sure of garbage collection |
// make sure of garbage collection |
282 |
xmldoc=null; |
xmldoc=null; |
285 |
} |
} |
286 |
} |
} |
287 |
// Look past the end... |
// Look past the end... |
288 |
if(!loadXML(url.replace(".xml","/"+convert(i)+".xml"), |
if(keys.length == 0 || !loadXML(url.replace(".xml","/"+convert(i)+".xml"), |
289 |
traverseTree,query,result_handler)) |
traverseTree,query,result_handler)) |
290 |
{ |
{ |
291 |
debug("Unable to locate key "+query); |
debug("Unable to locate key "+query); |
292 |
|
result_handler(new Array()); |
293 |
} |
} |
294 |
// make sure of garbage collection |
// make sure of garbage collection |
295 |
xmldoc=null; |
xmldoc=null; |