for (i = 0; i < hits.length; i++) {
show.hits[i] = new Array();
show.hits[i]['location'] = new Array();
for (i = 0; i < hits.length; i++) {
show.hits[i] = new Array();
show.hits[i]['location'] = new Array();
if ( hits[i].childNodes[j].nodeType
== Node.ELEMENT_NODE ) {
if (hits[i].childNodes[j].nodeName
== 'location') {
var locNode = hits[i].childNodes[j];
var id = locNode.getAttribute('id');
if ( hits[i].childNodes[j].nodeType
== Node.ELEMENT_NODE ) {
if (hits[i].childNodes[j].nodeName
== 'location') {
var locNode = hits[i].childNodes[j];
var id = locNode.getAttribute('id');
"id": locNode.getAttribute("id"),
"name": locNode.getAttribute("name")
};
"id": locNode.getAttribute("id"),
"name": locNode.getAttribute("name")
};