public void testUnmarshalling() throws Exception
{
SchemaBinding schema = XsdBinder.bind(new StringReader(PO_XSD), null, SCHEMA_RESOLVER);
Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
Object o = unmarshaller.unmarshal(new StringReader(PO_XML), schema);
assertEquals(PurchaseOrder.INSTANCE, o);
}
public void testMarshallingXerces() throws Exception
{