/// <summary>
        /// Sets all the nodes into the global variable nodes
        /// </summary>
        private void getNodes()
        {
            xmlSource.Initialize();

            while (xmlSource.MoveNextNode())
            {
                OsmSharp.Osm.Node node = (OsmSharp.Osm.Node)xmlSource.Current();
                if ((node != null) && (node.Id.HasValue && (node.Visible.HasValue) && (bool)(node.Visible)))
                {
                    nodes.Add((long)node.Id, node);
                }
            }
        }