try {
String schemaLocationURL = "http://java.sun.com/xml/ns/j2ee/application_1_4.xsd";
String version = "1.4";
assertFalse(SchemaConversionUtils.convertToSchema(cursor2, SchemaConversionUtils.J2EE_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 = SchemaConversionUtils.convertToApplicationClientSchema(xmlObject);