XML: Process large data

前端 未结 6 1669
盖世英雄少女心
盖世英雄少女心 2021-01-14 13:18

What XML-parser do you recommend for the following purpose:

The XML-file (formatted, containing whitespaces) is around 800 MB. It mostly contains three types of tag

6条回答
  •  萌比男神i
    2021-01-14 13:48

    As Bouman has pointed out, treating this as pure text processing will give you the best possible speed.

    To process this as XML the only practical way is to use a SAX parser. The Java APIs build in SAX parser is perfectly capable of handling this so there is no need to install any third party libraries.

提交回复
热议问题