<div class="gmail_quote">On Wed, Apr 29, 2009 at 9:54 AM, Maarten Deen <span dir="ltr"><<a href="mailto:mdeen@xs4all.nl">mdeen@xs4all.nl</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;">
<div class="im">Karl Newman wrote:<br>
> On Wed, Apr 29, 2009 at 6:32 AM, Maarten Deen <<a href="mailto:mdeen@xs4all.nl">mdeen@xs4all.nl</a><br>
</div><div class="im">> <mailto:<a href="mailto:mdeen@xs4all.nl">mdeen@xs4all.nl</a>>> wrote:<br>
<br>
>     Sample file that I try to import is this:<br>
><br>
>     <?xml version='1.0' standalone='no'?><br>
>     <osm version='0.6' generator='xapi: OSM Extended API 2.0'<br>
>     mlns:xapi='<a href="http://www.informationfreeway.org/xapi/0.6" target="_blank">http://www.informationfreeway.org/xapi/0.6</a>'<br>
>     xapi:uri='/api/0.6/node[amenity=atm][bbox=3.4,50.7,7.2,53.6]'<br>
>     api:planetDate='200904241825' xapi:copyright='2009 OpenStreetMap<br>
>     contributors'<br>
>     xapi:instance='zappyHyper'><br>
>       <node id='30839681' lat='52.6035219' lon='4.687596' user='Maarten<br>
>     Deen'xapi:users='florisje,Maarten Deen'<br>
>     timestamp='2009-03-01T11:48:12Z'><br>
>         <tag k='addr:city' v='Heiloo'/><br>
>         <tag k='addr:country' v='NL'/><br>
>         <tag k='addr:housenumber' v='10-12'/><br>
>         <tag k='addr:postcode' v='1852KX'/><br>
>         <tag k='addr:street' v='Het Hoekstuk'/><br>
>         <tag k='amenity' v='atm'/><br>
>         <tag k='name' v='ABN AMRO'/><br>
>       </node><br>
>     </osm><br>
><br>
>     Any idea what is going wrong here? The same error pops up with 0.30.<br>
><br>
</div><div class="im">> Looks like your node element is missing the required (for 0.6 files)<br>
> "version" attribute.<br>
<br>
</div>Ok. I downloaded the node from the api and I see the difference. I got this from<br>
one of the xapi servers. Guess they're not yet fully 0.6 compliant then.<br>
Or is there a way of getting osmosis to disregard the fact that there is no<br>
version attribute?<br>
<br>
Regards,<br>
Maarten<br>
</blockquote></div><br>Well, I know there's currently no way to make Osmosis ignore a missing version attribute, but it's certainly possible to program that functionality as an option. It could just create a synthetic version number (0?) for use in the rest of the pipeline. This would likely prevent it from being uploaded (without further manipulation, anyway). I'll leave it to others to debate the wisdom of providing such an option for non-compliant files, though.<br>
<br>Karl<br>