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.
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>"); }
© 2007-2010 Glenn Jones. All Rights Reserved.