Last post Apr 08, 2014 09:17 AM by pramodsul
Mar 22, 2014 12:11 PM|mou_inn|LINK
i like to know how many way we can do the xml serialization because same job can be done differently. once i was asked in interview that what was the advantage of doing xml serialization by xml document class in dotnet. so if any body knows the advantage
doing xml serialization by xml document class then please discuss.
also show me different technique to do the xml serializtion using different coding approach.
Mar 22, 2014 12:32 PM|PatriceSc|LINK
And they didn't told the answer ? It's always a bit hard to answer without knowing what they had in mind (for example is this about Xml documents in general or the XmlDocument class ?). See
http://msdn.microsoft.com/en-us/library/vstudio/7ay27kt9(v=vs.100).aspx for serialization. Generally speaking an advantage is that this is human readable and easier for interoperability but for example JSON likely took over for lightweight web services
as it is more compact and does have built in support for parsing in browsers.
I suspect that most of those questions doesn't expect a particular answer but rather to see how well you can discuss that, connect to related topics or even contradict them ("XML is great but in that or this context, I would consider json etc...").
Apr 08, 2014 09:17 AM|pramodsul|LINK
Have use Dataset? yes
All serlies and deserlise handle by dataset method use below code
-----Serlise normal data to XML formate----
DataSet ds = new DataSet();
ds = xmlstring();
-----Deserlise XML to our formate
DataSet listofpage = new DataSet();