I did use nearly the same code. The problem occurs at
builder.parse(new File(fileName));
but only on android with the xml file I attached above..

Am Montag, 19. März 2012 05:46:09 UTC+1 schrieb kalandar:
>
>         DocumentBuilderFactory factory = 
>>> DocumentBuilderFactory.newInstance();
>>
>> DocumentBuilder builder = factory.newDocumentBuilder();
>>
>> Document doc = builder.parse(new File(fileName));
>>
>> doc.getDocumentElement().normalize();
>>
>>
> try this and use NodeList to extract data.....
> this will works fine in android... 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to