Paul Clapham wrote:Based on the actual error message you posted, I don't know how you could come to that conclusion. The error message rather clearly says it expected a TimeSeries element in no namespace but instead it found a DocumentHeader element in the namespace represented by your "flx" prefix.
So that's the first problem. Your document has a DocumentHeader element which the class doesn't describe.
However it looks to me like you are going to have a namespace problem. The error message does say it's expecting a TimeSeries element in no namespace, but the TimeSeries element in your document is in a namespace. Perhaps you have to mention that fact in your class?
like i said, only a few element in the xml interest me.... DocumentHeader don't
are we oblige to put every element of the xml in the class?
i come to this conclusion because if i remove prefix of every element in the xml and change my root header for
that work fine.....
i tried to add namespace in my TimeSeries class in the XmlRootElement, i have no error but my TimeSeries class is null