Welcome! and rules
Joel on Software
Is there any way by which i can read each node(with attribute and values) as a string? Is there a way to get this using XmlTextReader.
Below is a brute force way of going through an XML file...I've done this with custom config files (as opposed to using XPath) when I'm going to have to go through the entire XML string anyway.
Small correction: Read() normally skips over attributes. You can use MoveToAttribute to read attributes manually, but it's much easier to use the XmlReader indexer to get the attribute values of the current node.
Fog Creek Home