I wonder if there is a way to get the XmlNode of an xml document knowing that i have the line number, i use C# and i don't want to use Linq (XDocument) I need to get the XmlNode from a XmlDocument. For exemple if i have this XML :
<Document>
<a key="1">AAA</a>
<a key="2">Aa</a>
<a key="3">aaA></a>
<a key="4">aA></a>
<b key="15">BbbB></b>
</Document>
I excepect to have a function that that take as input the line number 4 and return
<a key="3">aaA></a>
All that without using LINQ (Only using XmlDocument and XmlNode syntaxes...and not XDocument..) Thank in advance
To be more specific i need the balise and not the line for exemple If the Xml is like that :
1. <Document>
2. <a key="1">AAA</a>
3. <a key="2">Aa</a>
4. <a key="3">
5. aaA
6. </a>
7. <a key="4">aA></a>
8. <b key="15">BbbB></b>
9. </Document>
I excepect to have a function that that take as input the line number 4 or 5 or 6 it will return :
<a key="3">aaA</a>