From: Bu Mihai Date: 2008-03-31T17:40:38+09:00 Subject: Re: rexml to slow Im trying to build a map and to memorize all routes. I have a root node wich will generate some roads and each road will generate another roads and i have to go on all roads until there is no road unchecked. If im on a road and that road generates new roads then to go an all generated road i must begin my route from the begining not from the road who generates his child roads. road1 road3 road2 road3 I have the root node who generate two roads: road1 and road2 and i must verify this roads and check if each road will generate new roads; if yes then i must set "again=yes" because that road has "childs" who must be checked. So for example road1 generate road3 but to get to road3 i must go to root->road1->road3 and so on... (if road3 generates 3 another roads to go on one road i must have root->road1->road3->road3_1 or road3_2 or road3_3) Also i must have a attribute duplicate_road; for example if road2 generates also road3 then i will compare all checked roads till that moment and if it is found then that means it is a duplicate road so i mustnt check if again (again=no) And so i can generate in xml a map with roads (for the moment i dont care which path is shorter only to find a path from the root to the road_x based on the xml map). Tnx. -- Posted via http://www.ruby-forum.com/.