title: Cannot parse value from xml to code libgdx
body: <p>I am trying parse data from an xml file to my libgdx game. My xml file looks like this: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;levels currentLevel = "1"&gt;
      &lt;Level1 speed="1" direction="1" lineAngle="14" /&gt;
      &lt;Level2 speed="1" direction="1" lineAngle="14" /&gt;
      &lt;Level3 speed="1" direction="1" lineAngle="14" /&gt;
  &lt;/levels&gt;
  </code></pre>
  
  <p>And the code I call in show method to take values from xml is:</p>
  
  <pre><code>XmlReader xml = new XmlReader();
      try {
          XmlReader.Element element = xml.parse(Gdx.files.internal("levels.xml"));
          XmlReader.Element root = element.getChildByName("levels");
          currentLevel = root.getInt("currentLevel");
          XmlReader.Element level = root.getChildByName("Level1");
          lineAngle = level.getInt("lineAngle");
          speed = level.getFloat("speed");
          direction = level.getInt("direction");
      }catch (Exception e){} 
  </code></pre>
  
  <p>But I cannot get any value from xml. For example, I expect lineAngle to be 14 but it is 0. Can you explain to me why it is like this? And any solution would be great. Thanks.</p>