]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-xml.php
add extratags and name details to PlaceLookup (reverse)
[nominatim.git] / lib / template / search-xml.php
index 693330bb52cfce29fba95d3ce1c45415085b4b99..c1fd58f02ed4f612424eeebdd3d1829394207f15 100644 (file)
@@ -5,7 +5,8 @@
        echo "?xml version=\"1.0\" encoding=\"UTF-8\" ?";
        echo ">\n";
 
-       echo "<searchresults";
+       echo "<";
+       echo (isset($sXmlRootTag)?$sXmlRootTag:'searchresults');
        echo " timestamp='".date(DATE_RFC822)."'";
        echo " attribution='Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright'";
        echo " querystring='".htmlspecialchars($sQuery, ENT_QUOTES)."'";
                }
        }
        
-       echo "</searchresults>";
+       echo "</" . (isset($sXmlRootTag)?$sXmlRootTag:'searchresults') . ">";