Actually it looks properly indented to me - I think its just got some text
missing from the end.

I'm wondering if adding the extra last line below helps at all...

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();
        // does this next line help?
       pstream.close();
}

James
----- Original Message -----
From: "shajy mathew" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 14, 2001 3:53 PM
Subject: [dom4j-user] Opps.. I send the wrong file


> I am sorry folks, I send u the wrong file.
>
> here is the correct one.
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>


_________________________________________________________
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