[OSM-dev] XML Schema
Florian Lohoff
flo at rfc822.org
Sat Nov 8 15:10:05 GMT 2008
On Sat, Nov 08, 2008 at 04:02:13PM +0100, Frederik Ramm wrote:
> Hi,
>
> Florian Lohoff wrote:
> >I dont think anyone expects every reponse of the server to be validated.
>
> I was under the impression that Hugh did.
>
> >I have no problems if the DTD is a moving target and
> >people get told something changed. But currently there is nothing to
> >check against
>
> Does
>
> http://wiki.openstreetmap.org/index.php/OSM_Protocol_Version_0.5/DTD
>
> not work?
At least it bails out for OSMXAPI stuff concerning the planet date etc ;)
> You're right about the change files though, I don't know if there's
> anything for that. Then again, while it is very easy to validate your
> application's output against a DTD, it is quite difficult to validate
> the input side - whether or not your application will really be able to
> process any document allowed by the DTD!
Yes - input is much more difficult. Fuzzy error injection ;) There are
linux kernel projects trying to break filesystem code by injecting
broken bits into the filesystem and mount/unmounting it until it
crashes ;) This wouldnt work that easy with XML
Why not create an archive of difficult corner-case xml files to
test against - correct and broken ones. Just small 10-20 line
snippets somewhere in the cvs ... Currently the format is not that hard
but i guess it'll change a bit with 0.6.
Flo
--
Florian Lohoff flo at rfc822.org +49-171-2280134
Those who would give up a little freedom to get a little
security shall soon have neither - Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20081108/93aa3a28/attachment.pgp>
More information about the dev
mailing list