C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to read XML file from windows application


Posted Date: 02 Sep 2008      Total Responses: 3

Posted By: ashok       Member Level: Bronze     Points: 1


Hi all,

I have a xml file with some data say "123",
now i want to get this "123" in my windows application and use it.

Thanks,
Ashok




Responses

Author: Mohd. Azharuddin Ansari    02 Sep 2008Member Level: GoldRating:     Points: 3
There are two ways to get the data from the xml using .net
1. directly load xml to dataset
2. Use xmldocument and xpath queries



Author: ashok    02 Sep 2008Member Level: BronzeRating:     Points: 1
thanQ,

Can u give me any refernces or code please.

Ashok


Author: Divakar S    02 Sep 2008Member Level: GoldRating:     Points: 3
Try this

private string xmlname = AppDomain.CurrentDomain.BaseDirectory + @"XmlValues.xml";
Dataset ds= new DataSet();
ds.ReadXml(xmlname);



Post Reply
You must Sign In to post a response.
Next : Hit count for windows application
Previous : popup windows using winforms
Return to Discussion Forum
Post New Message
Category: Windows

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use