parsing large XML using SAX in java

后端 未结 4 2014
天命终不由人
天命终不由人 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:07

    Yes, you can override methods that process only the elements you want:

    • http://www.javacommerce.com/displaypage.jsp?name=saxparser1.sql&id=18232
    • http://www.java2s.com/Code/Java/XML/SAXDemo.htm

提交回复
热议问题