"Cairn" <Cairn@discussions.microsoft.comwrote in message
news:E6D01C0A-1965-4A29-ACB3-E08A1EFECC15@microsoft.com...
Quote:
I have some XML data which I wish to relate to existing classes, but data
does not map exactly so serialsation will not work, the other
consideration
is that some of the XML data will need transposing during the convertion.
My
considerations are to either use :-
1.) XSLT initially carry out the converstion so converting some of the
data
( space and comma seperated pairs into alist of points) and the go to the
required data objects,
or
2.) using XLINQ in someway to convert from the XML file to the objects.
Does anybody have any advice on the better of the methods, or any
alterantives.
The other consideration is that the XML will be very large with a mixture
of
differing objects (the objects are already pre known).
>
Thanks in advance.
You can still use XML serialisation, you just need to implement the
IXmlSerializable interface and write your own ReadXml method.
See
http://msdn.microsoft.com/en-us/libr...ializable.aspx.
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name