Sax analyzes best practices

What are the best ways to minimize pain when implementing a sax parser to build a tree of objects? For example, in which method do you create Java objects and where do you save them, how do you store and use the stack for complex hierarchies, how do you process attributes and how do you process nested elements? How do you process character data?

Basically, where are the main features suitable for making life easier?

+3
source share
1 answer

I often use Dom4j SAXReader with ElementHandler to build mini-DOM fragments of a large XML file .

, :

+2

Source: https://habr.com/ru/post/1774166/


All Articles