We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Once we have transforms performed, we need to run the xml through a transform for pretty printing due to limitations in the Saxon HE.
Here are some reasonable links:
Default Java transformer = com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
Will need to use the saxon transform to blindly transform and the aforementioned transformer to pretty print:
Transformer transformer = TransformerFactory.newInstance().newTransformer(); transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4"); StringWriter stringWriter = new StringWriter(); StreamResult streamResult = new StreamResult(stringWriter); transformer.transform(new StringSource(xml), streamResult); System.out.println(stringWriter.toString());
The text was updated successfully, but these errors were encountered:
sfloess
No branches or pull requests
Once we have transforms performed, we need to run the xml through a transform for pretty printing due to limitations in the Saxon HE.
Here are some reasonable links:
Default Java transformer = com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
Will need to use the saxon transform to blindly transform and the aforementioned transformer to pretty print:
The text was updated successfully, but these errors were encountered: