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


Top 5 Contributors of the Month
Easy Web
Imran Ghani

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?

Responses
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
http://bangarubabupureti.spaces.live.com/
Author: Sunil Yadav       [Moderator]      
Posted Date: May 27, 2010     Points: 5   

Hi,

XmlDocument doc= new XmlDocument(); 
doc.Load("Test.xml");

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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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