N
N
nanotears2012-11-19 23:42:26
Java
nanotears, 2012-11-19 23:42:26

Wrote a library in Java. What's next?

I wrote an XML parsing library . It combines the benefits of SAX and DOM.

The idea is simple. To parse a large file without eating up all the memory for the DOM tree, you need to parse sequentially. But writing SAX-style parsers is very inconvenient. Therefore, I build the DOM in turn for each of the elements that the user has subscribed to, give it to processing, and remove it from memory.

How to find out if someone has already done this (I couldn’t find it in Google)? And does anyone need it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
marklarius, 2012-11-20
@marklarius

STAX?

M
marklarius, 2012-11-20
@marklarius

The idea is obvious, it is strange that there are so few implementations. Just found this: www.devsphere.com/xml/saxdomix/

G
grossws, 2012-11-20
@grossws

The thing is useful. Although on large files I often use bare StAX + self-written FSM. I will keep in mind your library, it may come in handy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question