As far as I know, parsing an XML hasn't got anything to do with Struts as such. You get an XML => you parse it and create a bean object (or any other suitable object); that's entirely your call. You might want to consider reading up on the StAX parser, the SAX parser, or the DOM parser. There are plenty of other implementations as well, but I think these would suffice for now. Considering what each of these parsers have to offer, and what your requirements are, you should make a call. Personally, I would recommend the StAX parser for its balance of ease of use vs. performance.
Joined: Sep 11, 2007
Hi, My code is
I am getting the values , but the value of document and root is null. My console outputs the following