On Sun, Dec 13, 2009 at 2:23 PM, Ian Dees <span dir="ltr"><<a href="mailto:ian.dees@gmail.com">ian.dees@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div class="im">On Sun, Dec 13, 2009 at 1:16 PM, Ævar Arnfjörð Bjarmason <span dir="ltr"><<a href="mailto:avarab@gmail.com" target="_blank">avarab@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

On Sun, Dec 13, 2009 at 17:54, hy-soft <<a href="mailto:hy-soft@sha-mash.de" target="_blank">hy-soft@sha-mash.de</a>> wrote:<br>
> the wiki says:<br>
> <a href="http://wiki.openstreetmap.org/wiki/API_v0.6" target="_blank">http://wiki.openstreetmap.org/wiki/API_v0.6</a><br>
><br>
> Delete: DELETE /api/0.6/[node|way|relation]/#id<br>
><br>
> Expects a valid XML representation of the element to be deleted.<br>
> ---<br>
> What exactly does the term 'valid XML representation of the element'<br>
> mean?<br>
><br>
> Is it the same what I would get when downloading the item?<br>
<br>
The API docs suck,<br><br></blockquote></div><div>I beg to differ. The API 0.6 docs are quite good.<br><br>The docs tell you exactly what you need: a "valid XML representation of the element to be deleted" is exactly that. If you want to delete node id 54321 with tags foo=bar and bar=baz, then you send:<br>

<br>DELETE /api/0.6/node/54321<br><br>with content:<br><br><osm><br><node id="54321"><br>  <tag k="foo" v="bar"/><br>  <tag k="bar" v="baz"/><br></node><br>

</osm><br></div></div></blockquote><div><br>I thought you needed the version (and I forget if it's the new version
or the old version).  Will it really work without the version? <br></div></div>