Hi,
I am also getting the same error
com.google.gwt.xml.client.impl.DocumentImpl cannot cast to
com.google.gwt.dom.client.Document
This is my code
public void onResponseReceived(Request request,
Response response) {
// TODO Auto-generated method stub
Document xmlDoc = (Document) XMLParser.parse(response.getText
());
Element root = (Element) xmlDoc.getDocumentElement();
final int randNum = Random.nextInt(25);
Element randomVid = (Element) root.getElementsByTagName
("video").getItem(randNum);
}
I tired importing the what John has written but its not accepinting
half of these imports, saying that remove unsed imports.
any idea what should i do ?