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

◆ AppendChildForLoad()

virtual XmlNode System.Xml.XmlNode.AppendChildForLoad ( XmlNode newChild,
XmlDocument doc )
inlinepackagevirtualinherited

Reimplemented in System.Xml.XmlAttribute, System.Xml.XmlDocument, and System.Xml.XmlElement.

Definition at line 816 of file XmlNode.cs.

817 {
818 XmlNodeChangedEventArgs insertEventArgsForLoad = doc.GetInsertEventArgsForLoad(newChild, this);
819 if (insertEventArgsForLoad != null)
820 {
821 doc.BeforeEvent(insertEventArgsForLoad);
822 }
823 XmlLinkedNode lastNode = LastNode;
824 XmlLinkedNode xmlLinkedNode = (XmlLinkedNode)newChild;
825 if (lastNode == null)
826 {
830 }
831 else
832 {
836 if (lastNode.IsText && xmlLinkedNode.IsText)
837 {
839 }
840 else
841 {
842 xmlLinkedNode.SetParentForLoad(this);
843 }
844 }
845 if (insertEventArgsForLoad != null)
846 {
847 doc.AfterEvent(insertEventArgsForLoad);
848 }
849 return xmlLinkedNode;
850 }
static void NestTextNodes(XmlNode prevNode, XmlNode nextNode)
Definition XmlNode.cs:1274
virtual ? XmlLinkedNode LastNode
Definition XmlNode.cs:127
virtual void SetParentForLoad(XmlNode node)
Definition XmlNode.cs:1207

References System.Xml.Dictionary, System.Xml.XmlNode.LastNode, System.Xml.XmlNode.NestTextNodes(), and System.Xml.XmlNode.SetParentForLoad().

Referenced by System.Xml.XmlNode.CopyChildren(), System.Xml.XmlLoader.LoadAttributeValue(), and System.Xml.XmlLoader.ParsePartialContent().