I haven't used SaxParser, but wouldn't what you're doing be relative to the
file in which you're running that code?
So unless your source file is in the same root folder as /res/, I wouldn't
expect that to work.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Fri, Jan 1, 2010 at 12:38 AM, Yousuf Faheem <[email protected]>wrote:

> Hi,
>
> Happy New Year to all.
> I am trying to implement a SAX parser in my android application.
> I placed my xml file in res/xml folder and declared my path as
> "/res/xml/book.xml".
>
> SAXParserFactory spf = SAXParserFactory.newInstance();
>         try {
>
>
>             SAXParser sp = spf.newSAXParser();
>             sp.parse("/res/xml/book.xml",this);
>
>         }catch(SAXException se) {
>             se.printStackTrace();
>         }
>
> still the application gives a file not found error. Any clue what going on
> with the code.
>
> Thanks & Regards,
> Yousuf Syed
> 773-719-4786
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to