try {
String schemaLocationURL = "http://java.sun.com/xml/ns/javaee/application_5.xsd";
String version = "5";
assertFalse(SchemaConversionUtils.convertToSchema(cursor2, SchemaConversionUtils.JAVAEE_NAMESPACE, schemaLocationURL, version));
} finally {
cursor2.dispose();
}
boolean ok2 = compareXmlObjects(xmlObject, expected, problems);
assertTrue("Differences after reconverting to schema: " + problems, ok2);
//do the whole transform twice...
xmlObject = AppClientModuleBuilder.convertToApplicationClientSchema(xmlObject);