hi
thanks a lot
its working now

On Aug 4, 2:44 am, Norman Maurer <[email protected]> wrote:
> Check your imports... There are to NodeList in GWT:
> com.google.gwt.dom.client.NodeList
> com.google.gwt.xml.client.NodeList
>
> You should be sure you import "com.google.gwt.xml.client.NodeList" not
> "com.google.gwt.dom.client.NodeList". Thats the cause of the error..
>
> Bye,
> Norman
>
> 2009/8/3 Rahul <[email protected]>:
>
>
>
> > Hi,
> > I have a general question about coding.
> > I am working with XML documents presently and I am not able to
> > understand what cast to an object does.
>
> > for example:
>
> > NodeList URLs = (NodeList) root.getChildNodes();
>
> > this gives me an error of
> > [ERROR] Uncaught exception escaped
> > java.lang.ClassCastException:
> > com.google.gwt.xml.client.impl.NodeListImpl cannot be cast to
> > com.google.gwt.dom.client.NodeList
>
> > but when i change the code to
> > com.google.gwt.xml.client.NodeList URLs = root.getChildNodes();
> > this works fine
>
> > also again
> > Document xmlDoc = (Document) XMLParser.parse(response.getText());
> > this gives me an error
> > but
> > com.google.gwt.xml.client.Document xmlDoc =   XMLParser.parse
> > (response.getText());
> > does not
>
> > can someone explain why does this happen??
--~--~---------~--~----~------------~-------~--~----~
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