title: Parsing xml using XDocument - Deserialization
body: <p>I have the following xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Actions&gt;
      &lt;add order-id="1" symbol="ABC" price="5" quantity="200" /&gt;
      &lt;add order-id="2" symbol="123" price="15" quantity="100" /&gt;
      &lt;add order-id="3" symbol="ABC" price="5" quantity="300" /&gt;
      &lt;add order-id="4" symbol="ABC" price="7" quantity="150" /&gt;
      &lt;edit order-id="1" price="7" quantity="200" /&gt;
      &lt;remove order-id="4" /&gt;
      &lt;add order-id="5" symbol="123" price="17" quantity="300" /&gt;
      &lt;add order-id="6" symbol="123" price="12" quantity="150" /&gt;
      &lt;edit order-id="3" price="7" quantity="200" /&gt;
      &lt;remove order-id="5" /&gt;
  &lt;/Actions&gt;
  </code></pre>
  
  <p>I need to parse this using linq into the following object structure:</p>
  
  <pre><code> internal class OrderAction
      {
          private readonly Action action;
          private readonly Order order;
          public Action Action { get { return action; }}
          public Order Order { get { return order; }}
  
          public OrderAction(Action action,Order order)
          {
              this.action = action;
              this.order = order;
          }
      }
  </code></pre>
  
  <p>where an action is  <code>public enum Action { ADD, REMOVE, EDIT }</code></p>
  
  <p>an order is as follows:</p>
  
  <pre><code>class Order
      {
          public Order(long orderId, String symbol, int price, int quantity)
          {
              this.orderId = orderId;
              this.symbol = symbol;
              this.price = price;
              this.quantity = quantity;
          }
  
          public long orderId { get; private set; }
          public String symbol { get; private set; }
          public int price { get; private set; }
          public int quantity { get; private set; }
  }
  </code></pre>
  
  <p>I need to load the xml into an xdocument and find all the IEnumerable of orderactions in the file. How can i do this, without resorting into serialization attributes?</p>