commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Pocklington <...@pocko.freeserve.co.uk>
Subject [Digester] Preserve line breaks.
Date Sun, 11 Apr 2004 09:25:32 GMT
Hi,

Is there any way to preserve the line breaks entered into an XML doc when 
parsing with Digester?

I.e. I have this xml snippet:

    	<field name="field1" value="Line 1,
    	line 2,
    	line 3/>

But when I parse the xml file with the following appropriate rule:

    	digester.addSetProperties("application/page/fieldset/field", "value",     
	"value");

The set property becomes: "Line 1, line 2, line 3".  All my nice formatting 
has been lost.

Any solutions/ideas greatly appreciated.

Thanks in advance,

Alan.



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message