- public void endNode() throws IOException, IllegalStateException {
- LOG.debug("Ending the node");
+ public void domSourceValue(final DOMSource value) throws IOException {
+ try {
+ StreamResult xmlOutput = new StreamResult(new StringWriter());
+ TransformerFactory.newInstance().newTransformer().transform(value, xmlOutput);
+ writeObject(xmlOutput.getWriter().toString());
+ } catch (TransformerException | TransformerFactoryConfigurationError e) {
+ throw new IOException("Error writing anyXml", e);
+ }
+ }