Hi James,
Thank you pointing out the last line on my code.
I have not put in the complete text file. The file is well formed. While
opening it in text file I find the next line isn't printed.
Hope I am able to explain the problem.
thanks and regards
>From: "James Strachan" <[EMAIL PROTECTED]>
>To: "shajy mathew" <[EMAIL PROTECTED]>,
><[EMAIL PROTECTED]>
>Subject: Re: [dom4j-user] Opps.. I send the wrong file
>Date: Wed, 14 Nov 2001 16:01:39 -0000
>
>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
_________________________________________________________________
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