When should I choose SAX over StAX?

前端 未结 6 789
青春惊慌失措
青春惊慌失措 2020-12-07 08:25

Streaming xml-parsers like SAX and StAX are faster and more memory efficient than parsers building a tree-structure like DOM-parsers. SAX is a push parser, meaning that it\'

6条回答
  •  广开言路
    2020-12-07 09:16

    StAX enables you to create bidirectional XML parsers that are fast. It proves a better alternative to other methods, such as DOM and SAX, both in terms of performance and usability

    You can read more about StAX in Java StAX Tutorials

提交回复
热议问题