commons-user mailing list archives

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

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",     

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,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message