I am reading on serialization XMLand from what I understand, This is a way to take an object and save the state in a file. As for the implementation, it looks fairly straightforward, and it seems that there are a lot of resources for its application. When should serialization be used XML? What are the benefits? What are the situations that best help with this?
XML
You answered a little to the question in your post. This is great for preserving the state of an object. I used it in applications to save user settings. This is also a great way to send data to other systems as it is standardized. It is important to remember that it is easy to read by humans. This can be good or bad depending on your situation. You might want to encrypt it or use encrypted binary serialization if you do not want anyone else to understand it.
EDIT:Another noteworthy one is that the implemented .NET XMLSerializeronly serializes public elements in an object. If you need to keep personal or protected members, you will need to either use a customized serializer or use a different form of serialization.
XMLSerializer
.NET XmlSerializer XML. DataContractSerializer , XML, .
XmlSerializer
DataContractSerializer
XmlSerializer , , , , , - ASMX, Microsoft " ".
DataContractSerializer, WCF.
. . Java # - XML. XML . , , XML .
- XML- -. , ( ) /, , , (.. ), XML .
class, , HttpWebRequest, , im HttpWebRequest + Soap ( Im writing), Soap String, int,....
XML XML HttpWebRequest.
Source: https://habr.com/ru/post/1754675/More articles:Sql Server - Constraint - allow setting column A only if column B is zero and vice versa - sqlProtecting an assembly from a hacker - .netDetermining if a path is a VBA network path - access-vbaCan I group a string combination? - sqlBest choice for Long-poll / Comet in Java or C #? - javaASP.NET: how to ensure reload of a web static file - httpThe starting line of a hyperlink? - htmlASP.NET temporary directory: which folder for which site? - windowsHow to create a “blank” FitNesse website? - installationКак напечатать строку переменных без пробелов в Python (минимальное кодирование!) - pythonAll Articles