This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes Which parser is used in Struts to parse the Structconfig.xml file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Which parser is used in Struts to parse the Structconfig.xml file." Watch "Which parser is used in Struts to parse the Structconfig.xml file." New topic
Author

Which parser is used in Struts to parse the Structconfig.xml file.

p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
Which parser is used in Struts to parse the Structconfig.xml file.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9403
    
  20

I think it uses the SAX parser. Try to create an invalid struts-config.xml and you'll get a org.xml.sax.SAXParseException ...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If I remember correctly it uses the commons-digester.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Which parser is used in Struts to parse the Structconfig.xml file.
 
It's not a secret anymore!