Read Xml File From Internet In C#.Net


First updod any file on any ware in intenet. then write this code.





/////////////////////    CODE   ////////////////////////

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Xml;
using System.Windows.Forms;

namespace Xml_File_Operation
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void btnnet_Click(object sender, EventArgs e)
        {

            XmlDocument xdoc = new XmlDocument();

            xdoc.Load("http://gmail.com/person.xml");   // here url is writen

            MessageBox.Show(xdoc.SelectSingleNode("peoplr/person/age").InnerText);

        }
    }
}




--
/\/ir@\/  <(.'.)>



--
/\/ir@\/  <(.'.)>

Comments

Popular posts from this blog

How to get column value from the selected row in data grid in wpf c#.net

How to make and use web service in Microsoft Dynamics Navision.

How to use Format function in Microsoft Dynamics Navision.