aspose file tools*
The moose likes XML and Related Technologies and the fly likes XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML "object mapping"" Watch "XML "object mapping"" New topic
Author

XML "object mapping"

Peter Braun
Ranch Hand

Joined: Feb 09, 2005
Posts: 57
Hi,

Do you know about any technology which does "object mapping", like the Persistence API with Entity EJB in J2EE?

Peter
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12678
    
    5
If I am understanding what you want, there are many toolkits that provide for mapping between XML and Objects. For example, in the java.beans package we have XMLDecoder and XMLEncoder.
Also in the official Sun line we have the JAXB - Java Architecture for XML Binding toolkit. See this page for more.
Is that the sort of thing you are looking for?
Bill


Java Resources at www.wbrogden.com
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2046
What will be your purpose for the mapping? Is it like, to turn the xml into an object that you can use in your program, like DOM?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
If instead you're talking about storing objects in a relational database (with no XML involved whatsoever), have a look at the Hibernate project on SourceForge. It's the most popular object-relational mapping tool.


Ping & DNS - updated with new look and Ping home screen widget
Peter Braun
Ranch Hand

Joined: Feb 09, 2005
Posts: 57
Thanks for answers.

I just want to the same thing with XML files as Persistence API does with entities in relational databases. To build up objects from XML content, use getters and setters to access or modify its content, and persist the changes to the file. I thought it would be better than write a parser, for the same reasons as Entity Beans in EJB. So I don't know if such thing exist. What do you think? Does it make sense?

Peter
[ November 24, 2005: Message edited by: Peter Braun ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML "object mapping"
 
Similar Threads
problem in database connection
Getting large result sets using hibernate
O/R mapping free solution
Hibernate cascade what is delete and delete-orphan and difference between btw it?
Applet not displaying in Browser