The UfDataToXml convertor allows you to output an XML structure into an OutputStream from the parsed microformts.
using UfXtract; string url = "http://www.glennjones.net/about/"; UfWebRequest webRequest = new UfWebRequest(); webRequest.Load(url, UfFormats.HCard()); if (webRequest.Data.Nodes.Count > 0) { UfDataToXml dataConvertor = new UfDataToXml(); Response.ContentType = "text/xml"; dataConvertor.Convert(webRequest.Data, Response.OutputStream); }
© 2007-2010 Glenn Jones. All Rights Reserved.