Hi Shajy

Could you post an example to the list so we can see how its not properly
indented?

James
----- Original Message -----
From: "shajy mathew" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 14, 2001 2:42 PM
Subject: [dom4j-user] Unable to get a properly indented print


> 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
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to