Train::buildFromXML corrected