Ah, yes, of course.... Thanks for the quick reply. In this case, to get the behaviour I want I can use the w3c Node's normalize() method.

Thanks
Richard

Krzysztof Kowalczykiewicz wrote:
Hi!

Isn't it like that, that parser creates distinct nodes for XML entities
(like '), so probably Harry Potter title is represented in DOM as 3
nodes:
text node: Harry Potter and the Philosopher
entity node: '
text node: s Stone

iterate through all children and concatenate.

I'm not sure, but I think it's like that.

regards

Krzysztof Kowalczykiewicz




Reply via email to