users@jaxb.java.net

XmlAdapter will not be marshaled recursively

From: Tianyong Tang <tiyota_at_gmail.com>
Date: Sun, 16 Dec 2007 13:15:39 +0100

Hi,

I follow the article "XmlAdapter in JAXB RI EA" of Kohsuke Kawaguchi.

All works.

But when I apply another XmlAdapter to the Course class.

@XmlJavaTypeAdapter(CourseAdapter.class)
public class Course {
    String id;
    String name;
}

The Course will not be marshaled with the method CourseAdapter.marshal.

XmlAdapter will not be marshaled recursively?

Any reply will be appreciated.

Thanks in advance.

Tianyong