title: Casting JSON/XML in AS3
body: <p>Having used FlashDevelop with a project, and switched to FDT/Eclipse. I am sorting through hundreds of warnings in my code.</p>
  
  <p>Quite a few relate to XML and JSON syntax this project is using. In the following, I'm not sure what to cast the XML containing data as so that it is recognised by the compiler</p>
  
  <p>Example:</p>
  
  <pre><code>public function convertXMLToAssets(file:XML):void
  {
      var data:XML = new XML(file.data);
      var id:int = data.item.id;
      //etc
  }
  
  //gives Warning: Could not resolve variable (may be a dynamic member) data at line 59 
  </code></pre>