Tony Johansson wrote:
> Below I have two blocks of data.the first block is from 3 Movie objects that
> have been XML serialized.
> The second block of data is just these three movie object in an XML file.
> I just wonder when I look at these two blocks of data they look almost
> identical.. There are some minor differences.
> So my question is simply is a XML serialized file the same as an normal XML
> file ?
Define "normal XML file".
Hopefully any XML serialization creates a well-formed XML document if
that is what you consider "normal".
With .NET's XmlSerializer you can use certain attributes in your class
and member definitions to for instance specify the element or attribute
name a class/member is mapped to, see
http://msdn.microsoft.com/en-us/library/83y7df3e(v=VS.90).aspx
so that way you can get the names for instance you had in the sample you
called normal.
--
Martin Honnen --- MVP Data Platform Development
http://msmvps.com/blogs/martin_honnen/