[Haskell-cafe] Extracting structured data in XML into records

2007-02-24 Thread Johan Tibell
Hi! I'm trying to extract HCards (http://microformats.org/wiki/hcard) from HTML documents. HCard is a microformat. Microformats is an attempt to add semantic information to XML documents without adding any new tags. This is done by adding semantic information in class attributes instead (see the

Re: [Haskell-cafe] Extracting structured data in XML into records

2007-02-24 Thread Daniel McAllansmith
On Saturday 24 February 2007 21:22, Johan Tibell wrote: So my question is. How can I write the function 'extractElementsIntoRecords' below. Or, perhaps HXT is the wrong tool for the job and I should be trying to walk the DOM tree instead? module HCard where import Text.XML.HXT.Arrow