On 26 juin, 16:16, G <[email protected]> wrote:
> n is a text node, I reverified by getNodeType() which returns 3
> representing it's a TEXT_NODE.
> I have no clue as to why it's still returning null.

Re. your previous sample code, note that Text::toString() uses getData
(), so if you know you're facing a Text (which you should if you want
getNodeValue() to have any meaning), maybe you should use getData()
instead.

http://code.google.com/p/google-web-toolkit/source/browse/releases/1.6/user/src/com/google/gwt/xml/client/impl/TextImpl.java#46

Note that (AFAICT from reading the GWT code) getNodeValue() returns
nodeValue straight from JS for all browsers; so maybe the browser
you're using has a bug and returns 'null' instead the text value. If
it is the case, then you should file a bug to the browser vendor (and
to GWT so a workaround can be found in the mean time).

Not being parsing XML on the browser (I believe JSON or some specific
text format are far better suited), I can't help you more.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to