Re: even easier XML parsing: Annotations?

Reinier Zwitserloot <[email protected]> Mon, 5 Dec 2005 23:55:44 +0100
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
Actually, turns out JAXB2, which isn't out yet but planned to be
included with J2SE 1.6 and J2EE 1.5, is (almost) as easy as my
approach. Of course, they are taking a year+ to develop it, which
makes me wonder, but, hey, all I wanted was something like this to be
available on any JRE, so it seems I'm getting my wish.

Still, thanks for the feedback!

On 5 Dec 2005 19:21:57 -0000, [email protected]
<[email protected]> wrote:
>
> There is 1 message in this issue.
>
> Topics in this digest:
>
>       1. Re: even easier XML parsing: Annotations?
>            From: Tatu Saloranta <[email protected]>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 1
>    Date: Sun, 4 Dec 2005 10:26:30 -0800 (PST)
>    From: Tatu Saloranta <[email protected]>
> Subject: Re: even easier XML parsing: Annotations?
>
> --- Reinier Zwitserloot <[email protected]> wrote:
>
> > I was scanning the new annotations-based method for
> > configuring hibernate, and then it hit
> > me: 'configuring' an xml parser in a similar vein
> > shouldn't be too difficult.
> >
> > I hacked an implementation together over the
> > weekend.
>
> Looks like a useful approach to me from a quick
> glimpse?
>
> On the other hand, there certainly is no shortage of
> xml-to/from-java-objects data binding tools. ;-)
> (although most probably are not using JDK 1.5 metadata
> -- many are considering of making use of it, but it's
> probably easier to start with using it as opposed to
> bolting in support)
> You may want to check out some of existing
> alternatives to give some idea of how others have
> approached it; the one that comes to mind first is
> Xstream (http://xstream.codehaus.org), that focuses
> mostly on object-to-xml-back-to-objects. Another
> popular one is XmlBeans (http://xmlbeans.apache.org/),
> but it focuses more on using xml schema for mapping
> things. Dennis also has JiBX, and Sun obviously has
> Jaxb... everyone has different ideas of what's the
> best way to solve the mapping problem. ;-D
>
> That said, using jdk metadata seems like a sensible
> approach, and there's always room for improvements as
> well as new solutions!
>
> -+ Tatu +-
>
>
>
>
> __________________________________
> Start your day with Yahoo! - Make it your home page!
> http://www.yahoo.com/r/hs
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
>
>
> ------------------------------------------------------------------------
> Yahoo! Groups Links
>
>
>
>
> ------------------------------------------------------------------------
>
>
>
>
>


--
-------------------
"Ubi non accusator, ibi non judex."

 -- Reinier Zwitserloot


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xmlpull-dev/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/