Best way to read XML documents

Hi,

I have a requirement to read XML document with optimize code.

In such a way that I need to get the nested XML document values in to the c# generic list for further queries.

Help me on this, Thanks in advance…

Try LINQ to XML, that lets you query the XML DOM. If you’ve got a fixed data shape, then xml deserialization is pretty fun and easy.