DaftIeDocument extends XmlConvertableDocument<Daft, DaftIeVersion> { public static DaftIeDocument newDocument() throws ParserConfigurationException, JAXBException { return newDocument(DaftIeUtils.getFactory().createDaft()); } DaftIeDocument(Document document); @Override DaftIeVersion getDocumentVersion(); @Override DaftIeVersion getLatestVersion(); static boolean isReadable(Document doc); static DaftIeDocument newDocument(); static DaftIeDocument newDocument(Daft daft); @Override void setDocumentVersion(DaftIeVersion version); @Override Daft toObject();  }
@Test @Ignore public void testToXml() { Daft daft = DaftIeUtils.getFactory().createDaft(); daft.setVersion(DaftIeUtils.VERSION.toReadableVersion()); daft.setOverseasRental(DaftIeUtils.getFactory().createDaftOverseasRental()); daft.setOverseasSales(DaftIeUtils.getFactory().createDaftOverseasSales()); try { DaftIeDocument doc = DaftIeDocument.newDocument(daft); String xml = doc.toXmlString(true); LOGGER.info("XML: " + xml); } catch (Exception ex) { LOGGER.error("Test of DaftIeDocument.toXml failed!"); LOGGER.error("> " + ex.getLocalizedMessage(), ex); Assert.fail("Test of DaftIeDocument.toXml failed!"); } }