Ufxtract

Powerful, easy to use .Net microformats parser

Parsing multiple formats at once

The data convertor can take either a single format description object or multiples. If you wish to parse more than one microformat in a single pass, you can construct an ArrayList of the formats and pass that rather than a single format description object.

Code example

using UfXtract;

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

UfWebRequest webRequest = new UfWebRequest();

ArrayList formatArray = new ArrayList();
formatArray.Add(UfFormats.HCard());
formatArray.Add(UfFormats.Xfn());

webRequest.Load(url, formatArray);

if (webRequest.Data.Nodes.Count > 0)
{
   UfDataToJson dataConvertor = new UfDataToJson();
   Response.ContentType = "application/json";

   Response.Write(dataConvertor.Convert(webRequest.Data, formatArray));
}
Download Code MIT Open Source License About the UfXtract .Net library

Output formats

Formats

Inputs

.Net

Reporting and errors