DefaultSchemaResolver resolver = new DefaultSchemaResolver();
String xmimeXsd = getSchemaLocation(getClass(), "xmlmime.xsd");
resolver.addSchemaLocation("http://www.w3.org/2005/05/xmlmime", xmimeXsd);
SchemaBinding schema = XsdBinder.bind(new StringReader(xsd), null, resolver);
schema.setIgnoreUnresolvedFieldOrClass(false);
schema.setXopUnmarshaller(XOP_ENABLED_UNMARSH);
String xml =
"<applxml xmlns='http://www.jboss.org/xml/test/xop'>" +
" <xop:Include href='cid:applxml' xmlns:xop='http://www.w3.org/2004/08/xop/include'/>" +
"</applxml>";