I'm trying to read an xml and display its data in a form. Following is the code generated with the form. If I want to just display "Hello World" from a tab value in XML, where should I put the code in the C# code generated by the VB form, if my Xml schema (test.xml)is as below.
<tab>
<message>Hello World</Message>
</tab>
Following is the code generated by the form. I included System.Xml to read the Xml file. Any help is greatly appreciated. Thank you
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace xmldatatest
{
public partial class Form1 : Form
{
public Form1()
{
XmlDocument doc = new XmlDocument();
doc.Load("C:\\test.xml");
}
}
}