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
>
> assertEquals("Wrong second title", title2,
> titles.item(1).getFirstChild().getNodeValue());
>
> assertEquals("Wrong first title", title1,
> titles.item(0).getFirstChild().getNodeValue());
>
> .... and I get a failure on this last assert (the one for the Harry
> Potter title):
>
> Wrong first title expected:<Harry Potter and the Philosopher's Stone>
> but was:<Harry Potter and the Philosopher>
>
> The DOM seems fine (two results in it, as expected... the "Why we Buy"
> test passes). So I'm wondering if there's something I don't understand
> about the handling of '/'.
>
> NB. If I remove the ' from the title in my original XML and reimport the
> file, there are no problems.
>
> Any clues much appreciated
> Richard
>
>
>