title: Android can't open file using LibGDX
body: <p>I'm currently writing a LibGDX game and I need to open an XML file for a spritesheet. Unfortunately, when I try to open the file, I get an <code>IOException</code>. The files exist in the right places, the project's cleaned and up to date, etc.</p>
  
  <p>Here's the kicker: LibGDX will open and display image files in the same directory, and in fact will obtain the XML file in its own <code>FileHandle</code> object (I've had it logcat the size and it matches up). Yet when I send the file off to a SAX parser, I get an exception leading me back to the file saying that it can't open it.</p>
  
  <p>Here's the problem line of code inside the <code>ClipSprite</code> class:</p>
  
  <pre><code>private void parseConfigFile(FileHandle file) throws ParserConfigurationException, SAXException 
  {
      //Use a SAX parser to get the data out of the XML file.
      SAXParserFactory factory = SAXParserFactory.newInstance();
      SAXParser parser = factory.newSAXParser();
      XMLConfigHandler handler = new XMLConfigHandler();
  
      //Parse through the document
      try
      {
          parser.parse(file.path(),handler); //IOException here
      }
  </code></pre>
  
  <p>And here is the code where I select the file in the game in the <code>create</code> method in the main LibGDX class</p>
  
  <pre><code>    //This loads a png file
      texture = new Texture(Gdx.files.internal("data/graphics/CDE1/CDE1.png"));
      texture.setFilter(TextureFilter.Linear, TextureFilter.Linear);      
      TextureRegion region = new TextureRegion(texture, 0, 0, 512, 275);
  
       //Here I load the xml file and it tells me how many bytes it is
      Gdx.app.error("File","xml bytes:"+Gdx.files.internal("data/graphics/CDE1/CDE1.xml").length());
  
       //Here I load the same file and it crashes
       //Note that it looks in the subdirectory and finds /CDE1.xml properly
      animation = new ClipSprite("data/graphics/CDE1");
  </code></pre>
  
  <p>Error from logcat:</p>
  
  <pre><code>java.io.IOException: Couldn't open data/graphics/CDE1/CDE1.xml
  </code></pre>
  
  <p>Why can it identify the file, yet I still get IOExceptions about being unable to open it? Thanks for the help, and I'll provide any more information if necessary.</p>