Reading Huge XML File using StAX and XPath

前端 未结 7 1932
轮回少年
轮回少年 2020-12-31 11:35

The input file contains thousands of transactions in XML format which is around 10GB of size. The requirement is to pick each transaction XML based on the user input and sen

相关标签:
7条回答
  • 2020-12-31 12:39

    Stax and xpath are very different things. Stax allows you to parse a streaming XML document in a forward direction only. Xpath allows parsing in both directions. Stax is a very fast streaming XML parser, but, if you want xpath, java has a separate library for that.

    Take a look at this question for a very similar discussion: Is there any XPath processor for SAX model?

    0 讨论(0)
提交回复
热议问题