I am creating a language translation using XML by id
XML:
Word
I suggest you to use LINQ to XML for parsing XML. It has nice strongly typed API. Getting string word by integer id looks like (requires System.Xml.Linq namespace):
var xdoc = XDocument.Load(filePath);
string word = xdoc.Root.Elements()
.Where(w => (int)w.Attribute("id") == id)
.Select(w => (string)w)
.FirstOrDefault();
Or even less code with XPath (requires System.Xml.XPath namespace):
string word = (string)xdoc.XPathSelectElement("//word[@id='10001']");