Created attachment 51787 [details] The adapted and valid GPX file. Version: unspecified (using KDE 4.5.1) OS: Linux When I use the routing function in Marble, export the route as GPX and check the resulting file for validity, I get some error messages for the following reasons: #1: It seems that the element <rte> (route containing points with turn instructions) has to stand before the element <trk> (track witch is used to show the route as a line) #2: The elements of type <rtept> are not correct GPX: <rtept [coordinates]>[instruction]</rtept> should be <rtept [coordinates]><name>[instruction]</name></rtept> instead. Reproducible: Always Steps to Reproduce: #1: Export a route as GPX #2: Validate the GPX file (e.g. xmllint --noout --schema http://www.topografix.com/GPX/1/1/gpx.xsd [file]) -> returns something like "element rte: Schemas validity error : Element '[...]rte': This element is not expected." #3: Open the file in a text editor and move everything from <rte> to </rte> to a place in between </metadata> and <trk> and save. #4: Repeat step #2 -> returns an error message like "element rtept: Schemas validity error : Element '[...]rtept': Character content [...] is not allowed [...] content type is 'element-only'" #5: Open the file in a text editor again and surround all the instructions with <name> and </name> #6: Repeat step #2 -> The file validates Actual Results: See above Expected Results: See above
Created attachment 51788 [details] The GPX file created by marble that fails to validate
SVN commit 1179736 by nienhueser: Write xml that validates against http://www.topografix.com/GPX/1/1/gpx.xsd CCBUG: 251676 M +12 -13 RoutingModel.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1179736
Thanks for the detailed bugreport, that made it easy to fix. I'll backport it later.
SVN commit 1179820 by nienhueser: Write xml that validates against http://www.topografix.com/GPX/1/1/gpx.xsd BUG: 251676 Backport of commit 1179736. M +12 -13 RoutingModel.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1179820
Thanks a lot for fixing this! :)