Hello everyone,
I am a new user to dom4j. I found it pretty good and easy to use. However I
have a problem in terms of getting a properlu indented print. I am able to
read it in IE but when try to open it in notepad, the output doesn't look
properly spaced and indented.
this is the code I use to print:
private void write(org.dom4j.Document doc) throws Exception {
OutputFormat format = OutputFormat.createPrettyPrint();
FileOutputStream pstream = new FileOutputStream(resultFile);
XMLWriter writer = new XMLWriter( pstream, format );
writer.write(doc);
writer.flush();
writer.close();
}
any suggestions?
thanks and regards
shajy mathew
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user