I can't read file use saxParser
<p>Hi everyone
I'm new with Android and i have a problem with SAXParser
I have a xml file and I want pass this file to a ArrayList, but I can't read the file...</p>

<p>This is my code</p>

<pre><code>    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.index);

        FileParserSax saxParcer = new FileParserSax(getFilesDir().getAbsoluteFile() + "/datos.xml");
        ArrayList&lt;Meansurement&gt; procesos = saxParcer.parse();
        System.out.println("aqui");
   }
</code></pre>

<p>my fuction parser is this..</p>

<pre><code>public ArrayList&lt;Meansurement&gt; parse(){

    SAXParserFactory factory= SAXParserFactory.newInstance();
    try{
    SAXParser parser= factory.newSAXParser();
    SaxMeansurementHandler handler = new SaxMeansurementHandler();
    parser.parse(new File(ruta), handler);
    return handler.getMeansurements();
    }catch (Exception e) {
        throw new RuntimeException(e);
    }
}
</code></pre>

<p>but when I arrive to this line parser.parse(new File(ruta), handler); failed!!!</p>

<p>this is the error</p>

<pre><code>04-23 00:18:13.308: ERROR/AndroidRuntime(2533): Uncaught handler: thread main exiting due to uncaught exception
04-23 00:18:13.559: ERROR/AndroidRuntime(2533): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cronox/com.cronox.Index}: java.lang.RuntimeException: java.io.IOException: Couldn't open /data/data/com.cronox/files/datos.xml
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at android.app.ActivityThread.access$2100(ActivityThread.java:116)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at android.os.Handler.dispatchMessage(Handler.java:99)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at android.os.Looper.loop(Looper.java:123)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at android.app.ActivityThread.main(ActivityThread.java:4203)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at java.lang.reflect.Method.invokeNative(Native Method)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at java.lang.reflect.Method.invoke(Method.java:521)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at dalvik.system.NativeStart.main(Native Method)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533): Caused by: java.lang.RuntimeException: java.io.IOException: Couldn't open /data/data/com.cronox/files/datos.xml
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at com.cronox.FileParserSax.parse(FileParserSax.java:25)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at com.cronox.Index.onCreate(Index.java:35)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     ... 11 more
04-23 00:18:13.559: ERROR/AndroidRuntime(2533): Caused by: java.io.IOException: Couldn't open /data/data/com.cronox/files/datos.xml
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at org.apache.harmony.xml.ExpatParser.openUrl(ExpatParser.java:744)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:300)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at javax.xml.parsers.SAXParser.parse(SAXParser.java:361)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at javax.xml.parsers.SAXParser.parse(SAXParser.java:303)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at com.cronox.FileParserSax.parse(FileParserSax.java:22)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     ... 14 more
04-23 00:18:13.559: ERROR/AndroidRuntime(2533): Caused by: java.net.MalformedURLException: Protocol not found: /data/data/com.cronox/files/datos.xml
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at java.net.URL.&lt;init&gt;(URL.java:285)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at java.net.URL.&lt;init&gt;(URL.java:164)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     at org.apache.harmony.xml.ExpatParser.openUrl(ExpatParser.java:737)
04-23 00:18:13.559: ERROR/AndroidRuntime(2533):     ... 18 more
</code></pre>
