title: Deserialize XML to custom Class in Flex?
body: <p>Is it possible to deserialize an XML file to a class in Flex without manually checking the XML and/or creating the class, with the help of a <code>HttpService</code>? </p>
  
  <p><em>Edit: Explained a bit more and better.</em></p>
  
  <p>We have an XML file which contains:</p>
  
  <pre><code>&lt;Project&gt;
   &lt;Name&gt;NameGoesHere&lt;/Name&gt;
   &lt;Number&gt;15&lt;/Number&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>In Flex we want this to be serialized to our Project class:</p>
  
  <pre><code>package com.examplepackage
  {
      import mx.collections.ArrayCollection;
  
      [XmlClass]
      public class Project
      {
          public var Name:String;
          public var Number:int;  
  
          public function Project()
          {
          }
      }
  }
  </code></pre>
  
  <p>The XML is loaded with a HTTPService.</p>