FilemakerLayoutDocument extends FilemakerDocument<FMPXMLLAYOUT> { public static FilemakerLayoutDocument newDocument() throws ParserConfigurationException, JAXBException { return newDocument(FilemakerUtils.getFactoryForLayout().createFMPXMLLAYOUT()); } FilemakerLayoutDocument(Document document); static boolean isReadable(Document doc); static FilemakerLayoutDocument newDocument(); static FilemakerLayoutDocument newDocument(FMPXMLLAYOUT xmlLayout); @Override FMPXMLLAYOUT toObject();  }
@Test @Ignore public void testToXml() { FMPXMLLAYOUT layout = FilemakerUtils.getFactoryForLayout().createFMPXMLLAYOUT(); layout.setERRORCODE("0"); layout.setPRODUCT(FilemakerUtils.getFactoryForLayout().createProductType()); layout.getPRODUCT().setNAME("OpenEstate-IO"); layout.getPRODUCT().setVERSION("1.0"); layout.getPRODUCT().setBUILD("123"); try { FilemakerLayoutDocument doc = FilemakerLayoutDocument.newDocument(layout); String xml = doc.toXmlString(true); LOGGER.info("XML: " + xml); } catch (Exception ex) { LOGGER.error("Test of FilemakerLayoutDocument.toXml failed!"); LOGGER.error("> " + ex.getLocalizedMessage(), ex); Assert.fail("Test of FilemakerLayoutDocument.toXml failed!"); } }