void WriteSkeletonLevel(LgSkeletonLevel level, Dictionary<Rail, int> railsToIds)
 {
     WriteStartElement(GeometryToken.SkeletonLevel);
     //WriteAttribute(GeometryToken.NodeCountOnLevel, nodeCountOnLevel);
     WriteAttribute(GeometryToken.Zoomlevel, level.ZoomLevel);
     WriteEndElement();
 }
 void ReadSkeletonRails(LgSkeletonLevel level) {
     CheckToken(GeometryToken.Rails);
     if (XmlReader.IsEmptyElement) {
         XmlRead();
         return;
     }
     XmlRead();
     while (TokenIs(GeometryToken.Rail)) {
         ReadSkeletonRail(level);
     }
     ReadEndElement();
 }
 void ReadSkeletonRail(LgSkeletonLevel level) {
     // do not save rails in skeleton level;
     return;
 }
        void ReadSkeletonLevel(LgData lgData, int zoomLevel) {
            LgSkeletonLevel level = new LgSkeletonLevel() {ZoomLevel = zoomLevel};
            lgData.SkeletonLevels.Add(level);

            if (XmlReader.IsEmptyElement) {
                XmlRead();
                return;
            }

            XmlRead();
            //ReadSkeletonRails(level);            
            ReadEndElement();
            //level.CreateRailTree();
        }