The UfWebRequest has a load method that takes a Url string and a format description. Once the parse is complete, the data property of the web request will hold the results.
using UfXtract; string url = "http://www.glennjones.net/about/"; UfWebRequest webRequest = new UfWebRequest(); webRequest.Load(url, UfFormats.HCard()); if (webRequest.Data.Nodes.Count > 0) { UfDataToJson dataConvertor = new UfDataToJson(); Response.ContentType = "application/json"; Response.Write(dataConvertor.Convert(webRequest.Data, UfFormats.HCard())); }
© 2007-2010 Glenn Jones. All Rights Reserved.