Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Save() [4/4]

virtual void System.Xml.XmlDocument.Save ( XmlWriter w)
inlinevirtual

Definition at line 1374 of file XmlDocument.cs.

1375 {
1377 if (xmlNode == null)
1378 {
1379 return;
1380 }
1381 if (w.WriteState == WriteState.Start)
1382 {
1384 {
1385 if (Standalone.Length == 0)
1386 {
1387 w.WriteStartDocument();
1388 }
1389 else if (Standalone == "yes")
1390 {
1391 w.WriteStartDocument(standalone: true);
1392 }
1393 else if (Standalone == "no")
1394 {
1395 w.WriteStartDocument(standalone: false);
1396 }
1397 xmlNode = xmlNode.NextSibling;
1398 }
1399 else
1400 {
1401 w.WriteStartDocument();
1402 }
1403 }
1404 while (xmlNode != null)
1405 {
1406 xmlNode.WriteTo(w);
1407 xmlNode = xmlNode.NextSibling;
1408 }
1409 w.Flush();
1410 }
virtual ? XmlNode FirstChild
Definition XmlNode.cs:120

References System.Xml.XmlNode.FirstChild, and System.Xml.XmlDocument.Standalone.