.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

XML parsing in Dotnet

Posted By: Sripriya     Posted Date: May 26, 2010    Points:2   Category :ASP.Net
How to use XML parsing in Dotnet? Can anyone tell?

Author: BangaruBabuPureti             
Posted Date: May 26, 2010     Points: 5   

Hi I Attached A-Z Solutions XML Programming tutorial

Please Download It

Download Attachment

BangaruBabu Pureti
Author: Sunil Yadav       [Moderator]      
Posted Date: May 27, 2010     Points: 5   


XmlDocument doc= new XmlDocument(); 

XmlNodeList FirstName = xmlDoc.GetElementsByTagName("FName");
XmlNodeList LastName = xmlDoc.GetElementsByTagName("LName");

You can access the firsname and lastname as .

string sFName=FirstName[0].InnertText;
string sLName=LastName[0].InnertText

You can also loop through the record to get all the data.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend