FilemakerResultDocument extends FilemakerDocument<FMPXMLRESULT> { public static FilemakerResultDocument newDocument() throws ParserConfigurationException, JAXBException { return newDocument(FilemakerUtils.getFactoryForResult().createFMPXMLRESULT()); } FilemakerResultDocument(Document document); static boolean isReadable(Document doc); static FilemakerResultDocument newDocument(); static FilemakerResultDocument newDocument(FMPXMLRESULT xmlResult); FilemakerResultMapping toMapping(); @Override FMPXMLRESULT toObject();  }
@Test @Ignore public void testToXml() { FMPXMLRESULT result = FilemakerUtils.getFactoryForResult().createFMPXMLRESULT(); result.setERRORCODE("0"); result.setPRODUCT(FilemakerUtils.getFactoryForResult().createProductType()); result.getPRODUCT().setNAME("OpenEstate-IO"); result.getPRODUCT().setVERSION("1.0"); result.getPRODUCT().setBUILD("123"); result.setDATABASE(FilemakerUtils.getFactoryForResult().createDatabaseType()); result.getDATABASE().setNAME("example database"); result.getDATABASE().setLAYOUT("fmmedia2universal"); result.getDATABASE().setDATEFORMAT("D.m.yyyy"); result.getDATABASE().setTIMEFORMAT("k:mm:ss"); result.getDATABASE().setRECORDS(BigInteger.ZERO); result.setMETADATA(FilemakerUtils.getFactoryForResult().createMetaDataType()); result.setRESULTSET(FilemakerUtils.getFactoryForResult().createResultSetType()); try { FilemakerResultDocument doc = FilemakerResultDocument.newDocument(result); String xml = doc.toXmlString(true); LOGGER.info("XML: " + xml); } catch (Exception ex) { LOGGER.error("Test of FilemakerResultDocument.toXml failed!"); LOGGER.error("> " + ex.getLocalizedMessage(), ex); Assert.fail("Test of FilemakerResultDocument.toXml failed!"); } }