The application I am working on receives开发者_Python百科 a very complex XML as a response form an external system. The XML needs to be parsed to display results to the user.
I am trying to figure out the best approach to transform the XML to 'Display Ready' form. I have 2 options
- Use XPATH to populate POJOs from XML which could be sent to the view layer for display.
- Use XSLT transformation and display the results received in XML.
Which one would be faster? I understand that XSLT would get verbose and difficult to maintain.
Thanks in advance.
Shardul.
If it's for displaying only, I would prefer a XLST file. But when you have to proces files in some sort way POJO will to the job
精彩评论