List out the difference between XMLSerializer and the DataContractSerializer?



List out the difference between XMLSerializer and the DataContractSerializer?..

Answer / Abhinay Kandrap Kumar

XMLSerializer is based on XSD (XML Schema Definition) and relies on class hierarchy for serialization. It can produce inefficient XML due to unnecessary elements. On the other hand, DataContractSerializer is based on data contracts, allowing greater control over serialized output and better performance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WCF Interview Questions

What is the basic difference between creating WCF service or WEB services?

1 Answers   Petranics Solutions,


What is wcf used for?

1 Answers  


Plz any one send the sharepoint interview question @ mossdev123@gmail.com

1 Answers  


How many types of transport schemas are there in wcf?

1 Answers  


What is "know types" in wcf?

1 Answers  


What does a windows communication foundation, or wcf, service application use to present exception information to clients by default?

1 Answers  


What is transport reliability in wcf?

1 Answers  


What is difference between wcf and wpf?

1 Answers  


What do you understand by the term data contract?

1 Answers  


What is difference between WCF service application and WCF service Library?

1 Answers   Petranics Solutions, Viscus Infotech,


What is the request-reply mode in wcf?

1 Answers  


How we can achieve operation overloading while exposing wcf services?

1 Answers  


Categories