Ufxtract

Powerful, easy to use .Net microformats parser

Output to Machine HTML

The UfDataToMachineHtml convertor allows you to output a very basic form of HTML from the parsed microformts. The HTML is constructed using div's and makes no effort to choose the correct semantic HTML elements. Please do not use this output on the web. The convertor was built for machine to machine conversion.

Code example

using UfXtract;

string url = "http://www.glennjones.net/about/";

UfWebRequest webRequest = new UfWebRequest();
webRequest.Load(url, UfFormats.HCard());

if (webRequest.Data.Nodes.Count > 0)
{
    UfDataToMachineHtml dataConvertor = new UfDataToMachineHtml();
    Response.Write("<html><body>");
    Response.Write(dataConvertor.Convert(webRequest.Data, UfFormats.HCard()));
    Response.Write("</body></html>");
}
Download Code MIT Open Source License About the UfXtract .Net library

Output formats

Formats

Inputs

.Net

Reporting and errors