简体   繁体   中英

Spring Web-Service :what are SAAJ and AXIOM

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

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.

对于AXIOM而言,更好的是它的StAX(不使用内存)用法。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM