use of groovy.util.XmlNodePrinter in project camel by apache.
the class XmlParserDataFormat method newPrinter.
private XmlNodePrinter newPrinter(OutputStream stream) {
XmlNodePrinter xmlNodePrinter = new XmlNodePrinter(new PrintWriter(stream));
xmlNodePrinter.setNamespaceAware(isNamespaceAware());
return xmlNodePrinter;
}
use of groovy.util.XmlNodePrinter in project groovy by apache.
the class XmlUtil method asString.
private static String asString(Node node) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
XmlNodePrinter nodePrinter = new XmlNodePrinter(pw);
nodePrinter.setPreserveWhitespace(true);
nodePrinter.print(node);
return sw.toString();
}
use of groovy.util.XmlNodePrinter in project groovy-core by groovy.
the class XmlUtil method asString.
private static String asString(Node node) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
XmlNodePrinter nodePrinter = new XmlNodePrinter(pw);
nodePrinter.setPreserveWhitespace(true);
nodePrinter.print(node);
return sw.toString();
}
Aggregations