From: "Soumanjoy Das" <[EMAIL PROTECTED]>
> Hi James,
>
> I hit upon an occurrence of what seems to be related to Terry's problem:
>
> With the following code:
>
> XMLWriter oXMLW = new XMLWriter(new
> FileOutputStream("c:\\swift\\temp.xml"));
> SAXReader oDocReader = new SAXReader();
> Element oE = DocumentHelper.createElement("SomeElement");
> oXMLW.writeOpen(oE);
> oXMLW.writeClose(oE);
Add this
oXMLW.close();
You need to close the XMLWriter to close the underlying output stream. The
XML probably hasn't been output yet.
Try looking at the file after the close() to see if it looks OK.
James
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user