I am trying to create a version of "Find Nearby Locations" originally written to search using Yahoo. I need to use my own service instead. I think I have my proxy set up correctly because I can review the console when I'm debugging and in Firebug I can see that I have a POST with a status of OK. I have query function that takes the current geoLocation, runs it through a geometryService to buffer the point and run a featureLayer.selectFeatures. The featureLayer isn't selecting anything. I"m getting an error "illegal XML character" and I don't know if that's from the proxy or the buffer, which is supposed to be defining my input geometry to the selectFeatures. My map spatial reference and the spatial reference of the features I'm trying to select are not the same.Right now my callback function doesn't do anything, I'm still trying to determine if anything is selected before I go any farther.function queryFeatures(queryVal, distance){ console.log("in queryFeatures"); createProgress('searchResults'); //var dist = dijit.byId("distVal").srcNodeRef.children[0].children[1].textContent.split(" "); var params = new esri.tasks.BufferParameters(); params.geometries = [ currentGraphic.geometry ]; //buffer in linear units such as meters, km, miles etc. if(distance){ params.distances = distance; } else{ params.distances = [ currentBufferDist ]; } params.unit = esri.tasks.GeometryService.UNIT_STATUTE_MILE; params.outSpatialReference = map.spatialReference; geomService.buffer(params, function(geometries){ query.geometry = geometries[0]; query.outSpatialReference = map.spatialReference; switch(queryVal){ case 'offSat': query.where = "1=1"; featureLayer = offSatFeatureLayer; break; case 'vendor': query.where = "1=1"; featureLayer = venFeatureLayer; break; } featureLayer.selectFeatures(query,esri.layers.FeatureLayer.SELECTION_NEW, function(features){ console.log("inselectFeatures function I just added"); } ,function(error){ alert(error.message); }); }, function(error){ alert(error.message); }); }