posted 21 years ago
This question may be asked several times, but I want to find whether there is a wrok around for it.
A very simple documemt like this:
After it is parsed by DOMParser, <A> will have 3 children (2 of them are just #text node). Now, if I do not have a DTD, is there any quick way to NOT include these two #text node in final DOM? setIgnoreWhitespace() simply does not work!
I do not want 2 #text nodes in my parsed document.
Thanks for any helps!