Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

Java annotations and XML files

Thread view: 
G. - 13 Feb 2007 12:55 GMT
Have you heard about the tool, that allows to binding form XML files
to object? Annotations are necessary.

The problem is: how to transform XML document to certain object? My
idea is to write annotated Java class and tool that will use those
annotations to fetch the data form XML an put it in object. And, of
course in the other direction- form object to XML.

Is there any tool available?
Mich - 13 Feb 2007 13:08 GMT
Why not just create a class that reads and writes an XML file? I know that
it can seem less high-tech, but the simpler solutions are usually the best.

> Have you heard about the tool, that allows to binding form XML files
> to object? Annotations are necessary.
[quoted text clipped - 5 lines]
>
> Is there any tool available?
G. - 13 Feb 2007 13:24 GMT
Yes - but I'm looking for universal mechanism, that will be able to
read/write. No parser will be necessary. Annotations will decide how
to write and what.

G.
G. - 13 Feb 2007 19:38 GMT
> Yes - but I'm looking for universal mechanism, that will be able to
> read/write. No parser will be necessary. Annotations will decide how
> to write and what.
>
> G.

The answer is JAXB 2.0. https://jaxb.dev.java.net/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.