PDA

View Full Version : How to solve the Whitespace problem on XML? 'ingoreWhite' dont help here


RoyalFlush
06-27-2007, 08:51 AM
Hi,

how you can solve the Whitespace problem for an XML Text?
First I was thinking, "ignoreWhite" is the solution for this.
But "ignoreWhite" will only delete the Whitespace of the first and the last Line of the complete Text.

Sorry for the bad explanation. Please look at this images, there would be the problem clearer:

XML Text Problem (http://img170.imageshack.us/img170/5263/xml1tq7.jpg)
One Solution for this (http://img170.imageshack.us/img170/1272/xml2rn9.jpg)


Is there an better solution for this problem?

hangalot
06-27-2007, 09:38 AM
just use a trim whitespace function. whitespace in a textnode has to be preserver, ignore white means that it should not create nodes for blank lines