I need to serialize an Object to XML and back. The XML is fix and I can\'t change it. I fail to generate this structure after bookingList.
bookingList
How can I \"
I was facing with this problem and i solved it... Well it is very interesting, and this is a bug in .net maybe.
the problem is here: public List booking= new List();
public List booking= new List();
You should use: public List booking { get; set; }
public List booking { get; set; }
And you will get the defined order .... but why? who knows... :)