Hi,
For splitting your document, plz look into this...
http://www.dotnetperls.com/split[
^]
int i = 0;
foreach (string line in File.ReadAllLines("TextFile1.txt"))
{
foreach (string part in parts)
{
Console.WriteLine("{0}:{1}",
i,
part);
}
i++;
}
// For converting string to XML..
using System;
using System.Xml;
namespace StringToXml
{
class Program
{
static void Main(string[] args)
{
string s = "hello";
XmlDocument xm = new XmlDocument();
xm.LoadXml(string.Format("<root>{0}</root>", s));
Console.WriteLine(xm.InnerXml);
Console.ReadKey();
}
}
}