This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML Beans and Java-XML Conversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML Beans and Java-XML Conversion" Watch "XML Beans and Java-XML Conversion" New topic

XML Beans and Java-XML Conversion

Ramanan Sathiyanarayanan

Joined: Dec 20, 2005
Posts: 11
Hello All,

We are planning to use Apache's XMLBeans for OX Conversion in our project. We are planning to send all the output from DAO's as XML to the business layer. Something like this,

DAO --> Convert DAO Entites to XML ---> Business Layer reads the XML and it should convert to its own Entities before using it.

DAO layer we will be having its own schema for the xml it generates. And for business layer it needs data in its own schema (say a subset of data generated from DAO layer).

Is it possible to convert xml data (which is in dao's schema) to business layer schema without writing any java code ?

If not, which pattern is best suited, how can i implement ?

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12759
without writing any java code ?

Sure, but you will have to write XSLT code
I agree. Here's the link:
subject: XML Beans and Java-XML Conversion
Similar Threads
Returning the different type from the Servlet Filter
stand-alone java app and hibernate transactions
Facade design pattern in web services
Application Context in business layer
which design pattern to use??