[android-developers] Re: xml parsing error

2012-11-26 Thread bob
Not all Nodes are Elements. Apparently, that node is not an element. On Thursday, November 22, 2012 6:15:36 AM UTC-6, Ananda Krishna wrote: Hi I am trying to parse an xml file.But I am getting an exception. error Message :org.apache.harmony.xml.dom.TextImpl cannot be cast to

[android-developers] Re: xml parsing error

2012-11-22 Thread Piren
I haven't checked your code very throughly (its no fun trying to read xml parsing code) but that error seems to indicate you're trying to cast a value into an xml element. or as the Inception people said: you went too deep :) you should do the same type checking you do in the level above it.

[android-developers] Re: XML Parsing Error

2008-10-18 Thread Ludwig
I think you can see from your stack that you do not even get near your XML parsing code.It is my impression that you fail open the Http connection to get the file. This might be because you have not given permission to your app to access the internet. Could you check that you have

[android-developers] Re: XML Parsing Error

2008-10-18 Thread JavaAndroid
Hi Ludwig, Thanks for ur Response.. i added that entry. After adding uses- permission tag in androidmanifest.xml, i was getting UnknownHostException...it was basically due to URL classI replaced everything with HTTPClient classes Here is my modified class and it worked me. import