@Test
public void xml2classroom() throws JAXBException{
String str="<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><classRoom classroomid=\"classroom\" classroomname=\"�������\"><student><age>18</age><stuaddress>��������</stuaddress><stuname>admin</stuname></student><student><age>18</age><stuaddress>��������</stuaddress><stuname>admin</stuname></student><student><age>18</age><stuaddress>��������</stuaddress><stuname>admin</stuname></student><student><age>18</age><stuaddress>��������</stuaddress><stuname>admin</stuname></student><student><age>18</age><stuaddress>��������</stuaddress><stuname>admin</stuname></student><student><age>18</age><stuaddress>��������</stuaddress><stuname>admin</stuname></student><student><age>18</age><stuaddress>��������</stuaddress><stuname>admin</stuname></student><student><age>18</age><stuaddress>��������</stuaddress><stuname>admin</stuname></student><student><age>18</age><stuaddress>��������</stuaddress><stuname>admin</stuname></student><student><age>18</age><stuaddress>��������</stuaddress><stuname>admin</stuname></student></classRoom>";
JAXBContext context=JAXBContext.newInstance(ClassRoom.class);
Unmarshaller unmarshaller = context.createUnmarshaller();
ClassRoom room = (ClassRoom) unmarshaller.unmarshal(new StringReader(str));
System.out.println(room);
}