static void parse_element(struct xml_context *ctx, struct xml_node *e)
{
+ // JOSM marks deleted, but not uploaded, objects
+ char *action = xml_attr_value(ctx, e, "action");
+ if (action && !strcmp(action, "delete"))
+ return;
+
if (!strcmp(e->name, "node"))
parse_node(ctx, e);
else if (!strcmp(e->name, "way"))