Hello, you can either learn how to parse XML-files in C++ (google c++ xml) or you can convert the XML-file to a flat CSV-format using a python tool http://sumo-sim.org/wiki/Tools/Output#xml2csv.py It is not yet included in release 0.19.0 but you can get it here: http://sumo-sim.org/trac.wsgi/browser/trunk/sumo/tools/output/xml2csv.py This type of file can be opend in any spread sheet software and it is also easier to parse in C++ (google c++ csv)
regards, Jakob 2013/12/7 曾开 <[email protected]> > Hi,all, > For example,if the following codes existing in a "output-tripinfo.xml" > file,how can i get the number(0.00,L3_0,5.10...) easily for the computation > in a c++ program written in VC++?if there are many cars in the <tripinfos> > node,how can i get all the number and strings in the file? > > Best regards, > Kai Zeng > > <tripinfos> > <tripinfo id="veh3" depart="0.00" departLane="L3_0" departPos="5.10" > departSpeed="0.00" departDelay="0.00" arrival="20.00" arrivalLane="L8_0" > arrivalPos="195.25" arrivalSpeed="28.92" duration="20.00" > routeLength="385.40" waitSteps="0" rerouteNo="0" devices="tripinfo_veh3" > vType="CarA" vaporized=""/> > </tripinfos> > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
