Hi;

 

The problem is that for debugging I do want the standard pretty format in the rest of it. Any way to do that?

 

Thanks – dave

 

 


From: Marc Pellmann [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 1:45 AM
To: David Thielen
Subject: Re: [dom4j-user] Need to set xml as Element text

 

Hi David!

This format has:

<Data>blah blah blah</Data>

 

Where blah blah blah is the contents of a cell in the spreadsheet. Here is the weirdness. Let’s say all of the text is bold. Then the xml is:

<Data><B>blah blah blah</B></Data>

 

But if it is written as:

<Data>

<B>blah blah blah</B>

</Data>

If I get your problem right you want that the Output of your dom4j Document will not have the whitespaces and newlines!?

You could force the XMLWriter to do this:

FileOutputStream outputStream..
XMLWriter writer = new XMLWriter(outputStream,OutputFormat.createCompactFormat());
writer.write(document);
writer.close();

-- 
Viele Grüße / best regards
 
Marc Pellmann
_______________________________
inubit - the integration experts
inubit AG
Lützowstraße 105-106
D-10785 Berlin
Fon: +49.30. 72 61 12-132
Fax: +49.30. 72 61 12-100
Freecall: 0800-go inubit
Web: www.inubit.com




Reply via email to