public XmlTemplateEngine(String indentation, boolean validating) throws SAXException, ParserConfigurationException { this(new XmlParser(validating, true), new GroovyShell()); this.xmlParser.setTrimWhitespace(true); setIndentation(indentation); }
public XmlTemplateEngine(String indentation, boolean validating) throws SAXException, ParserConfigurationException { this(new XmlParser(validating, true), new GroovyShell()); this.xmlParser.setTrimWhitespace(true); setIndentation(indentation); }
private XmlParser newParser() throws Exception { XmlParser xmlParser = new XmlParser(newSaxParser()); xmlParser.setErrorHandler(getErrorHandler()); xmlParser.setTrimWhitespace(!isKeepWhitespace()); return xmlParser; }