How to get name of System.Xml.Linq.XNode?
INode does not always have a name. It's better to use Elements()
instead of Nodes()
, to enumerate child elements inside XElement, then we have a IEnumerable<XElement>
.
INode does not always have a name. It's better to use Elements()
instead of Nodes()
, to enumerate child elements inside XElement, then we have a IEnumerable<XElement>
.