Parsing Large XML files w/ Ruby & Nokogiri

后端 未结 5 1551
眼角桃花
眼角桃花 2021-01-02 07:30

I have a large XML file (about 10K rows) I need to parse regularly that is in this format:


    10000         


        
5条回答
  •  情歌与酒
    2021-01-02 08:21

    You may like to try this out - https://github.com/amolpujari/reading-huge-xml

    HugeXML.read xml, elements_lookup do |element|
      # => element{ :name, :value, :attributes}
    end
    

    I also tried using ox.

提交回复
热议问题