aspose file tools*
The moose likes XML and Related Technologies and the fly likes XML Parser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML Parser" Watch "XML Parser" New topic
Author

XML Parser

Rahul Nair
Ranch Hand

Joined: Dec 01, 2007
Posts: 138

Hi,

Just for Curiosity, Which XML Parser struts1 and 2 internally using for parsing the Struts configuration file.
Also, Which one is efficient SAX or DOM ? What is the difference between them ?

Thanks,

Rahul
Prabhakar Reddy Bokka
Ranch Hand

Joined: Jul 26, 2005
Posts: 189

Good Question !

Go through the links below.

Struts xml parser

and the second question SAX or DOM which is best?

SAX vs DOM


SCJP 5, SCWCD 5
mahammad gouse
Greenhorn

Joined: Jul 04, 2010
Posts: 15
Hi,
in struts it both uses the SAX and DOM parsers.
the diff. is SAX is an Event based parser and DOM is tree based parser.
DOM consumes more memory than SAX.
so if you want to read the XML doc. then go for SAX.
if you are doing update delete insert operations on XML then go for DOM.


bye
 
Don't get me started about those stupid light bulbs.
 
subject: XML Parser
 
Similar Threads
What if DTDs cannot be accessed
which parser?
XML parser
Sun XML Parser Vs Xerces
can you translate me the English?