java 1.5.0_11: How to indent xml output by DOMImplementationLS and LSSerializer
- From: Rolf.Kemper@xxxxxxxxxxxx
- Date: 31 May 2007 01:12:32 -0700
Dear Experts,
I have to write a DOM Document and I used the dom implementation LS
To serialise the document I used this code:
DOMImplementationLS domImplLS = (DOMImplementationLS)
impl.getFeature("LS", "3.0");
LSSerializer serializer = domImplLS.createLSSerializer();
// create document doShotMap
LSOutput lso = domImplLS.createLSOutput();
FileOutputStream fos = new FileOutputStream(ShotMapFilePath);
lso.setByteStream(fos);
lso.setEncoding("UTF-8");
serializer.write(docShotMap, lso);
How can I achive to indent the result ?
I would like to keep the application portable.
Thanks a lot for your hints
Rolf
.
- Prev by Date: Re: JSP Loading Page... Please wait while my code doesn't work!
- Next by Date: Re: -Xmx out of memory errors
- Previous by thread: betwixt list xml to bean problem, please help
- Next by thread: MutableComboboxModel in Netbeans IDE
- Index(es):