[OSM-dev] API 0.5 is on the way

michael_j at email.de michael_j at email.de
Tue Sep 11 23:04:36 BST 2007


Hi, 

good start. The DTD looks nice. 

Some comment from purely looking at it:

<!ELEMENT osm (bound?,node*,segment*,way*)>

- Where is "bound" used for?
- "Segment" should surely be removed.

> <!ELEMENT way (tag*,nd+)>

As a way always consists of at least 2 nodes, this would be more precise:
<!ELEMENT way (tag*,nd, nd+)>

Br, 
Michael

> -----Ursprüngliche Nachricht-----
> Von: "Martijn van Oosterhout" <kleptog at gmail.com>
> Gesendet: 11.09.07 17:10:56
> An: "Frederik Ramm" <frederik at remote.org>
> CC: dev List <dev at openstreetmap.org>
> Betreff: Re: [OSM-dev] API 0.5 is on the way


> 
> On 9/11/07, Frederik Ramm <frederik at remote.org> wrote:
> > I'll happily provide a DTD or XML schema for you but to be honest,
> > you would be the first programmer I know who would prefer those over
> > an example!
> 
> FWIW, there's a DTD I made here:
> 
> http://dev.openstreetmap.org/~kleptog/osm-0.5.dtd
> 
> I havn't verified everything yet, but it's what I'm using to write the
> parser for the API client v5 (for the bulk uploader, primarily).
> 
> Have a nice day,
> -- 
> Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/
> 
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
> 






More information about the dev mailing list