Deserialize Possible?

Aug 12, 2011 at 11:38 AM

Greetings,

 

Could anyone please confirm whether it's possible to use Deserialize method. I am having problem not getting intellisense when I create instance of class generated by xsd2code

e.g.

Lets say i've xml string containing xml document (of orders). I would like to pass this xml string to DESERIALIZE methhod and expect a return of strongly typed Orders object. Then I can work with this Orders Object

 

Any help much appreciated.

Oct 26, 2011 at 5:54 PM

Your doing something like this correct?

 

OrdersType myOrders = new OrdersType();

if (OrdersType.Deserialize(myXMLString, myOrders))
{
    // Do something with myOrders object
}else{
    throw new Exception("Failed deserializing the orders object")
}