check out the DOMHelp.js library that has a workaround for this common
problem: http://icant.co.uk/sandbox/domhelp/DOMhelp.js

MCA

On Sep 4, 10:49 pm, perry <[EMAIL PROTECTED]> wrote:
> thinking about following xml fragment:
>
> <gradingcriterion>
>       <label>Subject/discipline content &amp; knowledge</label>
>       <value>knowledge</value>
>  </gradingcriterion>
>
> when I use getChildNodes().getLength(), the result I get is 5 instead
> of 2.  I re-edit the above xml fragment as a single line:
>
> <gradingcriterion><label>Subject/discipline content &amp;knowledge</
> label><value>knowledge</value></gradingcriterion>
>
> The result I get is 2.
>
> So it is obvious that "/n" is considered as a child node by GWT. So is
> there way to walk around this problem?

--~--~---------~--~----~------------~-------~--~----~
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