Click here to Skip to main content
15,920,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to convert an html to xml using c# ?
What I am targetting is a web page source I fetch from web.
XML in UTF-16 encoding
Any references will be appreciated....

Thanks for the help
Posted

Example:

using System.Xml;
using System.IO;

string temp = System.IO.File.ReadAllText("1.html");

try
{
XmlDocument xd = new XmlDocument();

xd.LoadXml(temp);
}
catch (Exception po)
{
MessageBox.Show("You have selected wrong file !!!");

}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900