aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes StAX may consume as much memory as DOM ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "StAX may consume as much memory as DOM ?" Watch "StAX may consume as much memory as DOM ?" New topic
Author

StAX may consume as much memory as DOM ?

Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 813
    
    1
DOM API is known for consuming big memories since all data in the XML document are loaded in XML content tree before parsing.
I found out there is a possibility that StAX API may consume as much as memory as DOM API.


The reason why I ask because in EPractice lab, a question "A company needs to process DOM documents received from its customers through an EJB 3 endpoint.
Which of the following APIs will a developer need to invoke to process these DOM documents"
Select 2:
A. UDDI
B. JAXR
c. JAXP
D JAX-WS
E JAXB
F StaX.

The given answer is JAXP and StAX.
(I think DOM API in JAXP should be included in the choice as well.)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: StAX may consume as much memory as DOM ?