0

Is there a difference between method GetNamedItem("test") and access by index in XmlAttributeCollection? Maybe in null handling or in something else?

xml_node.Attributes.GetNamedItem("test").Value;
xml_node.Attributes["test"].Value;
benderto
  • 896
  • 11
  • 39

1 Answers1

0

XmlAttributeCollection.ItemOf Property (String)

This property is a Microsoft extension to the Document Object Model (DOM). It is equivalent to calling GetNamedItem.

CodeCaster
  • 147,647
  • 23
  • 218
  • 272