Mapping interfaces W3C XML Schema로부터 나온 XML 타입과 자바 타입 시스템의 차이 때문에, JAXB는 인터페이스를 out of box로 바인딩을 하지 못하지만, 몇 가지 요소들을 제공한다. @XmlRootElement 인터페이스가 많은 서브 클래스로 구현된다면 XmlRootElement를 사용하는 것을 고려할 수 있다. @XmlRootElementclass Zoo {@XmlAnyElementpublic List animals;} interface Animal { void sleep();void eat(); ...} @XmlRootElementclass Dog implements Animal { ... } @XmlRootElementclass Lion implements Ani..