From XML Schema to Java Generic List
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:Revealed="http://www.java2s.com" targetNamespace="http://www.java2s.com"> <element name="Schedule"> <complexType> <sequence> <element name="course" type="Revealed:Course" minOccurs="1" maxOccurs="unbounded"/> </sequence> </complexType> </element> <complexType name="Course"> <sequence> <element name="courseId" type="string"/> <element name="name" type="string"/> <element name="description" type="string"/> </sequence> </complexType> </schema>