﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8442	OSM objects parameter via stdin are not XML since 2 XML documents	jjaf.de	Hind	"== Problem ==
While looking for a automatisation for WIWOSM-project i came to CommandLine.
When selecting an OSM object to be passed as parameter via stdin to a script you get two XML documents instead of one, e.g.:
{{{#!xml
<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' generator='JOSM'>
</osm>
<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' generator='JOSM'>
  <relation id='253676' timestamp='2009-09-18T01:18:49Z' uid='120146' user='TIGERcnl' visible='true' version='1' changeset='2518319'>
[...]
</osm>
}}}
This of course does not parse.
== Cause ==
http://svn.openstreetmap.org/applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java Line 520 has unconditional
{{{#!java
osmWriter.footer();
}}}
for ending referenced objects before conditional
{{{#!java
osmWriter.header();
[...]
osmWriter.footer();
}}}
for parameters.
== Resolution ==
Leave out the conditional statements and put unconditional footer at the end of parameters processing."	defect	closed	major		Plugin commandline	tested	invalid	XML header footer parsing error	
