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

◆ AppendChildForLoad()

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

Reimplemented from System.Xml.XmlNode.

Definition at line 221 of file XmlAttribute.cs.

222 {
223 XmlNodeChangedEventArgs insertEventArgsForLoad = doc.GetInsertEventArgsForLoad(newChild, this);
224 if (insertEventArgsForLoad != null)
225 {
226 doc.BeforeEvent(insertEventArgsForLoad);
227 }
228 XmlLinkedNode xmlLinkedNode = (XmlLinkedNode)newChild;
229 if (_lastChild == null)
230 {
234 }
235 else
236 {
237 XmlLinkedNode lastChild = _lastChild;
241 if (lastChild.IsText && xmlLinkedNode.IsText)
242 {
244 }
245 else
246 {
247 xmlLinkedNode.SetParentForLoad(this);
248 }
249 }
250 if (insertEventArgsForLoad != null)
251 {
252 doc.AfterEvent(insertEventArgsForLoad);
253 }
254 return xmlLinkedNode;
255 }
XmlLinkedNode _lastChild
static void NestTextNodes(XmlNode prevNode, XmlNode nextNode)
Definition XmlNode.cs:1274
virtual void SetParentForLoad(XmlNode node)
Definition XmlNode.cs:1207

References System.Xml.XmlAttribute._lastChild, System.Xml.Dictionary, System.Xml.XmlNode.NestTextNodes(), System.Xml.XmlLinkedNode.next, and System.Xml.XmlNode.SetParentForLoad().