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 use serial.write() in Arduino.

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

How to Generate random rows in dataset using c#.net