How to transform huge xml files in java?

前端 未结 7 1177
失恋的感觉
失恋的感觉 2021-01-12 07:04

As the title says it, I have a huge xml file (GBs)

  
  
     ...    
    ...          


        
7条回答
  •  别那么骄傲
    2021-01-12 07:29

    StAX would seem to be one obvious solution: it's a pull parser rather than either the "push" of SAX or the "buffer the whole thing" approach of DOM. Can't say I've used it though. A "StAX tutorial" search may come in handy :)

提交回复
热议问题