commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanouil Batsis <Emmanouil.Bat...@eurodyn.com>
Subject Re: XMLConfiguration Trimming whitespace around node value
Date Thu, 05 May 2005 09:52:06 GMT
Chan, Joseph wrote:

>Could someone explain why XMLConfiguration trims the whitespace which
>surrounds the value of node?   This presents a problem when the XML
>Configuration contains formatted text.
>  
>
Dont have a clue about the internals but as far as XML goes:

* if the formatted text is an attribute value, then that text value is 
normalized (whitespace is trimmed) by the XML parser
* if the formatted text is added as a child of an element then try 
adding xml:space="preserve"

hth,

Manos

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