Does anyone have an idea (or is there already a routine) how to split a line of 
an osm file in its respective keys and values?

I've tried a few things, but I'm not fluent in perl. My problem at the moment 
is 
that splitting a line on the space character seems logical, but you run into 
problems if a value has a space in it.
So splitting something like <tag k="name" v="foo bar"/> will split the value 
"foo bar" also.

Regards,
Maarten

_______________________________________________
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev

Reply via email to