Using parsed XML as data format for MVC implementation

Instead of using Beans to contain the data for JSP pages I want to use XML objects. For example, a 'Document' object which represents XML data.

I should then be able to interface easily with web services -some clients might require the raw xml string. Furtermore, I am not tied to JSP. I could use XSLT or browser based XSL stylesheets.

The interface between my controller and processes will then also be a 'Document' instead of pre-defined methods.

I would like to know what are the pros and cons of my approach? Is this kind of design used anywhere?

[589 byte] By [jaco@cyberseal.co.za] at [2007-9-26 4:09:34]
# 1
This is not really any direct answer to your question.However, it may serve as food for your thoughts.Have you read http://java.sun.com/products/jsp/html/JSPXML.html and http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-jspxml.html
neville_sequeira at 2007-6-29 13:12:43 > top of Java-index,Other Topics,Patterns & OO Design...