Hi Nischal If you don't mind the performance hit of using XPath, you can write code like this:
XPathDocument xpDoc = new XPathDocument( "customer.xml" ); XPathNavigator xpNav = xpDoc.CreateNavigator(); XPathNodeIterator nodeIt = xpNav.Select( "//currAddress/street/text()" ); string strStreet = ""; if( nodeIt.MoveNext() ) strStreet = nodeIt.Current.Value; Andy Mc -----Original Message----- From: Nischal Muthana [mailto:[EMAIL PROTECTED]] Sent: 21 June 2002 00:34 To: [EMAIL PROTECTED] Subject: [DOTNET] XmlTextReader with an XPath Hi All I have a small program which uses XmlTextReader to read through an XML file and get the appropriate values from the file. <snip> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.