What does this method do, and why is it necessary?
The "go to definition" option leads me to a function containing all comments, here's what it says about its purpose
//Writes the XML declaration with the version "1.0" and the standalone attribute.
what does it mean by "writes the XML declaration"? Is this when it creates the .xml file?
How does it relate to the constructor XmlTextWriter()'s purpose?