]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-xml.php
status after hackweekend London
[nominatim.git] / lib / template / address-xml.php
index ba085eea9fd27b757270659d8a6e374b0dbf7c5a..39d9a14792171a0c0d0cd0efc60ff8fa73c7257b 100644 (file)
@@ -47,9 +47,7 @@
                        echo "<extratags>";
                        foreach ($aPlace['sExtraTags'] as $sKey => $sValue)
                        {
                        echo "<extratags>";
                        foreach ($aPlace['sExtraTags'] as $sKey => $sValue)
                        {
-                               echo '<tag key="'.htmlspecialchars($sKey).'">';
-                               echo htmlspecialchars($sValue);
-                               echo "</tag>";
+                               echo '<tag key="'.htmlspecialchars($sKey).'" value="'.htmlspecialchars($sValue).'"/>';
                        }
                        echo "</extratags>";
                }
                        }
                        echo "</extratags>";
                }
@@ -59,7 +57,7 @@
                        echo "<namedetails>";
                        foreach ($aPlace['sNameDetails'] as $sKey => $sValue)
                        {
                        echo "<namedetails>";
                        foreach ($aPlace['sNameDetails'] as $sKey => $sValue)
                        {
-                               echo '<name key="'.htmlspecialchars($sKey).'">';
+                               echo '<name desc="'.htmlspecialchars($sKey).'">';
                                echo htmlspecialchars($sValue);
                                echo "</name>";
                        }
                                echo htmlspecialchars($sValue);
                                echo "</name>";
                        }