parsing large XML using SAX in java

后端 未结 4 2055
天命终不由人
天命终不由人 2021-01-22 19:53

I am trying to parse the stack overflow data dump, one of the tables is called posts.xml which has around 10 million entry in it. Sample xml:



        
4条回答
  •  日久生厌
    2021-01-22 20:23

    It is pretty much the same approach as I've answered here already.

    Scroll down to the org.xml.sax Implementation part. You'll only need a custom handler.

提交回复
热议问题