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

◆ AddNode()

virtual XmlNode System.Xml.XmlNamedNodeMap.AddNode ( XmlNode node)
inlinepackagevirtual

Reimplemented in System.Xml.XmlAttributeCollection.

Definition at line 302 of file XmlNamedNodeMap.cs.

303 {
304 XmlNode oldParent = ((node.NodeType != XmlNodeType.Attribute) ? node.ParentNode : ((XmlAttribute)node).OwnerElement);
305 string value = node.Value;
306 XmlNodeChangedEventArgs eventArgs = parent.GetEventArgs(node, oldParent, parent, value, value, XmlNodeChangedAction.Insert);
307 if (eventArgs != null)
308 {
310 }
311 nodes.Add(node);
312 node.SetParent(parent);
313 if (eventArgs != null)
314 {
316 }
317 return node;
318 }
virtual XmlNodeChangedEventArgs GetEventArgs(XmlNode node, XmlNode oldParent, XmlNode newParent, string oldValue, string newValue, XmlNodeChangedAction action)
Definition XmlNode.cs:1239
virtual void AfterEvent(XmlNodeChangedEventArgs args)
Definition XmlNode.cs:1261
virtual void BeforeEvent(XmlNodeChangedEventArgs args)
Definition XmlNode.cs:1253

References System.Xml.XmlNamedNodeMap.SmallXmlNodeList.Add(), System.Xml.XmlNode.AfterEvent(), System.Xml.XmlNode.BeforeEvent(), System.Xml.Dictionary, System.Xml.XmlNode.GetEventArgs(), System.Xml.XmlNamedNodeMap.nodes, System.Xml.XmlNamedNodeMap.parent, and System.value.

Referenced by System.Xml.XmlNamedNodeMap.SetNamedItem().