XDocument xmlOrders = XDocument.Load( "Orders.xml" );

XNamespace ns = "http://schemas.devleap.com/Orders";
var orders = from o in xmlOrders.Root.Elements( ns + "order" )
	select new Order {
		CustomerID = (String)o.Attribute( "idCustomer" ),
		Product = new Product {
			IdProduct = (Int32)o.Attribute("idProduct"),
			Price = (Decimal)o.Attribute("price") },
		Quantity = (Int32)o.Attribute("quantity")
	};
