How to translate "OutputFormat.setPreserveSpace()" into JAXP?
I'm working on the code implemented by the old Xerce.jar&Xalan.jar.
Now I need to adapt these code by JAXP.
I faced these lines as below:
===============implemented by the old Xerce.jar&Xalan.jar====================
Document
doc = ...;
OutputFormat format = new OutputFormat(doc);
format.format.setIndenting(true);
format.setPreserveSpace(true);
format.setLineWidth(65);
Now I can successfully translate the method "setIndenting" by the following
==============================implemented by the JAXP========================
TransformerFactory tfactory = TransformerFactory.newInstance();
Transformer serializer= tfactory.newTransformer();
serializer.setOutputProperty(OutputKeys.INDENT, "yes");
...
Now I don't know how to translate the method of "setPreserveSpace" in JAXP?
I also don't know how to translate the method of "setLineWidth" in JAXP?
Looking forword your help!
Thanks in advance!