users@jaxb.java.net

Re: tag with attributes and text content as a field

From: Benjamin Reed <rangerrick_at_gmail.com>
Date: Sun, 13 Sep 2009 22:32:58 -0400

On Sat, Sep 12, 2009 at 12:31 PM, Wolfgang Laun <wolfgang.laun_at_gmail.com> wrote:
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name = "FooType", propOrder = {
>    "content"
> })
> public class FooType {
>
>    @XmlValue
>    protected String content;
>    @XmlAttribute
>    protected String type;
>    // ...
> }

@XmlValue, that was it, thanks!

-- 
Benjamin Reed a.k.a. Ranger Rick
Fink, KDE, and Mac OS X development
Blog: http://www.raccoonfink.com/
Music: http://music.raccoonfink.com/