Issue
SAAJ is based on DOM, the Document Object Model. What is meant by this statement?
AXIOM is based on StAX, the Streaming API for XML. What is meant by this statement?
Which is better?
I want to clear the concept regarding to both APIs. Thank You
Solution
The DOM model reads the entire document into memory before extracting things from the nodes. Stax parse the document without keeping it in memory.
So, need to reference backwards and forwards in the xml and the xml content is small, use DOM, otherwise consider Stax.
Answered By - Niels Bech Nielsen