Page 1 of 1
ATOC CIF Timetable Parser to XML 25/01/2015 at 18:48 #68373 | |
readered
16 posts |
Hi there, I'm in the process of writing a parser for the ATOC CIF timetable file they release weekly and create an importable XML timetable. I have a couple of questions about the XML timetable though. I've tried to follow the schema on the wiki but I haven't been able to import a simple 1 train time table yet. I'm working on Westbury for the moment (as it's my 'home' simulation living in Theale). Could someone tell me what is wrong with this example timetable:
Many thanks for any help. Will Log in to reply |
ATOC CIF Timetable Parser to XML 25/01/2015 at 19:15 #68375 | |
Finger
220 posts |
What's wrong with it? Everything! The information on the wiki seems obsolete - the XML schema is totally different. Eg. TrainCategory should be under TrainCategories, Schedule should in fact be Timetable under Timetables, etc. Only the DepartureTime element seems right. Last edited: 25/01/2015 at 19:16 by Finger Log in to reply |
ATOC CIF Timetable Parser to XML 25/01/2015 at 19:27 #68376 | |
readered
16 posts |
Hmm. I had no idea that the wiki data was out of date. I'll generate a schema from an unzipped version of the WTT I have and go from there. Thanks for you input. Log in to reply |
ATOC CIF Timetable Parser to XML 25/01/2015 at 19:32 #68377 | |
clive
2789 posts |
" said:When I get a moment I'll write up the current schema. Log in to reply The following user said thank you: readered |
ATOC CIF Timetable Parser to XML 25/01/2015 at 20:46 #68382 | |
headshot119
4869 posts |
Have a look at this, this is output from my CIF parser for ATW, try it on North East Wales to look how it imports. (Assuming you're trying to import it into the sim via "Timetable - Export/Import - from XML format"<?xml version="1.0" encoding="utf-8"?> " said: " said:Am I right in saying the .WTT XML schema is different to the XML schema for the import?When I get a moment I'll write up the current schema. "Passengers for New Lane, should be seated in the rear coach of the train " - Opinions are my own and not those of my employer Last edited: 25/01/2015 at 20:52 by headshot119 Log in to reply |
ATOC CIF Timetable Parser to XML 29/01/2015 at 06:59 #68531 | |
clive
2789 posts |
" said:" said:I found a moment; the wiki page is now up to date.When I get a moment I'll write up the current schema. Log in to reply |
ATOC CIF Timetable Parser to XML 29/01/2015 at 15:28 #68549 | |
headshot119
4869 posts |
" said:" said:That is the XML schema for the .WTT files though isn' it ?" said:I found a moment; the wiki page is now up to date.When I get a moment I'll write up the current schema. What the original OP is after is the details on the XML import feature, which as far as I'm aware using a different schema? "Passengers for New Lane, should be seated in the rear coach of the train " - Opinions are my own and not those of my employer Log in to reply |