Hi Minal
Could it be that you are writing an applet and
creating an XMLWriter that writes to a local file? Applets generally can't write
to local files unless they're signed. You could try this instead...
StringWriter buffer = new
StirngWriter();
XMLWriter writer = new XMLWriter( buffer
);
writer.write( document );
String text = buffer.toString();
If the above works then the problem you were having
was caused by you not being allowed to write to files in the sandbox where you
ware.
BTW the above could be simplified as
either
StringWriter buffer = new
StirngWriter();
document.write( buffer );
or String text = document.asXML();
James
|
- [dom4j-user] (no subject) Tobias Rademacher
- [dom4j-user] (no subject) Tobias Rademacher
- [dom4j-user] (no subject) Minal Ashar
- Re: [dom4j-user] (no subject) James Strachan
- Re: [dom4j-user] (no subject) James Strachan
- [dom4j-user] (no subject) toby-wan-kenobi
- [dom4j-user] (no subject) toby-wan-kenobi
- [dom4j-user] (no subject) Christian Bjørnbak
- Re: [dom4j-user] (no subject) Dane Foster
- [dom4j-user] (no subject) Nicholas Sanderson
- [dom4j-user] (no subject) JavaXML Developer
- [dom4j-user] (no subject) Wannheden, Knut
- [dom4j-user] (no subject) Leticia ELFASSI
- [dom4j-user] (no subject) Leticia ELFASSI