将非常大的XML文件转换为csv

将非常大的XML文件转换为csv,xml,csv,converter,Xml,Csv,Converter,我有一个带有6Go的XML文件(我的模拟跟踪),我想把它转换成csv格式 有没有办法做到这一点,我有4GO的内存用于此应用程序 这是我的xml文件的一个示例 <netstate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.sf.net/xsd/netstate_file.xsd"> <timestep time="0.00

我有一个带有6Go的XML文件(我的模拟跟踪),我想把它转换成csv格式

有没有办法做到这一点,我有4GO的内存用于此应用程序

这是我的xml文件的一个示例

<netstate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.sf.net/xsd/netstate_file.xsd">
    <timestep time="0.00">
        <edge id="-39539626">
            <lane id="-39539626_0">
                <vehicle id="flow0.0" pos="2.60" speed="0.00"/>
            </lane>
        </edge>
    </timestep>
    <timestep time="0.10">
        <edge id="-39539626">
            <lane id="-39539626_0">
                <vehicle id="flow0.0" pos="2.62" speed="0.25"/>
            </lane>
        </edge>
    </timestep>
我没有使用特定的语言,我想要的是这个输出

目前,我用java开发了一个函数来读取csv文件,然后获得我想要的输出


提前感谢

请提供一个有意义的XML示例以及该示例所需的输出。同时说明您知道并准备使用哪些编程语言。使用SAX或Stax解析器,您可以使用这些解析器解析大型XML,因为解析器不会将整个XML放入内存中。写CSV谢谢你的回答,我已经更新了我的问题,为了展示我想要的输出,你能告诉我使用SAX的更多细节吗?它是某种工具还是编程类?
Vehicule1:LaneID1,LaneID2,LaneID3,.....
Vehicule2:LaneID1,LaneID5,LaneID4,.....
Vehicle3:LaneID3,LaneID8,LaneID7,.....
...........