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/