Breaking News
Loading...
Sunday, 9 December 2012

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@\/  <(.'.)>

0 comments:

Post a Comment

Thanks for comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

 
Toggle Footer