https://learn.microsoft.com/en-us/dotnet/api/system.xml.linq.xdocument?view=net-10.0&redirectedfrom=MSDN
XDocument Class (System.Xml.Linq) | Microsoft Learn
Represents an XML document. For the components and usage of an XDocument object, see XDocument Class Overview.
class systemxmllinqmicrosoftlearn
https://learn.microsoft.com/en-us/dotnet/api/system.xml.linq.xdocument.save?view=netframework-4.8.1&viewFallbackFrom=net-9.0
XDocument.Save Method (System.Xml.Linq) | Microsoft Learn
Serializes this XDocument to a file, a TextWriter, or an XmlWriter.
savemethodsystemxmllinq