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

◆ WriteElementTo()

static void System.Xml.XmlElement.WriteElementTo ( XmlWriter writer,
XmlElement el )
inlinestaticprivate

Definition at line 442 of file XmlElement.cs.

443 {
445 while (true)
446 {
448 {
449 xmlElement.WriteStartElement(writer);
450 if (xmlElement.IsEmpty)
451 {
452 writer.WriteEndElement();
453 }
454 else
455 {
456 if (xmlElement._lastChild != null)
457 {
458 xmlNode = xmlElement.FirstChild;
459 continue;
460 }
461 writer.WriteFullEndElement();
462 }
463 }
464 else
465 {
466 xmlNode.WriteTo(writer);
467 }
468 while (xmlNode != el && xmlNode == xmlNode.ParentNode.LastChild)
469 {
470 xmlNode = xmlNode.ParentNode;
471 writer.WriteFullEndElement();
472 }
473 if (xmlNode != el)
474 {
475 xmlNode = xmlNode.NextSibling;
476 continue;
477 }
478 break;
479 }
480 }
XmlElement(XmlName name, bool empty, XmlDocument doc)

References System.Xml.Dictionary, System.Xml.XmlNode.FirstChild, System.writer, and System.Xml.XmlNode.WriteTo().

Referenced by System.Xml.XmlElement.WriteTo().