0
kicks
LINQ Farm: LINQ to XML and Line Numbers
There are times when it is helpful to know the line number of a node in an XML file. Reporting the line number of a node can be a helpful to users, particularly if you want to report an error. It can also be convenient to search for a node by line number, but that can, of course, be a very risky endeavor, as documents can be modified accidentally, and their line numbers changed without notice.