on 06-12-2008 1:52 PM
Hello everybody,
I'm trying to serialize a dom4j-Document that I created to an XML-document using an XMLWriter.
The problem is, the Document got an element with a whitespace/blank as value ( <element> </element>)
The xmlWriter trimms the blank and so the gets lost.
How can I keep this whitespace in my XMLWriter?
best regards
Adnane
Edited by: Adnane Elgoute on Jun 17, 2008 8:38 AM
Hi Adnane,
as I told you:
a)
convert the document to string
b)
OutputStream os = null;
os.write(yourString.getBytes());
Regards Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.