WisItDocument extends XmlDocument<WIS> { public static WisItDocument newDocument() throws ParserConfigurationException, JAXBException { return newDocument(WisItUtils.getFactory().createWIS()); } WisItDocument(Document document); static boolean isReadable(Document doc); static WisItDocument newDocument(); static WisItDocument newDocument(WIS wis); @Override WIS toObject();  }
@Test @Ignore public void testToXml() { ObjectType obj = WisItUtils.getFactory().createObjectType(); obj.setINFODE("an example property"); obj.setORT("Berlin"); WIS wis = WisItUtils.getFactory().createWIS(); wis.setBENUTZER(WisItUtils.getFactory().createWISBENUTZER()); wis.getBENUTZER().setKDNR("123"); wis.setOBJEKTE(WisItUtils.getFactory().createWISOBJEKTE()); wis.getOBJEKTE().getOBJEKT().add(obj); try { WisItDocument doc = WisItDocument.newDocument(wis); String xml = doc.toXmlString(true); LOGGER.info("XML: " + xml); } catch (Exception ex) { LOGGER.error("Test of WisItDocument.toXml failed!"); LOGGER.error("> " + ex.getLocalizedMessage(), ex); Assert.fail("Test of WisItDocument.toXml failed!"); } }