GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

HaXml

HaXml is a collection of utilities for parsing, filtering, transforming, and generating Extensible Markup Language (XML) documents using the programming language Haskell. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

HaXml is a collection of utilities for parsing, filtering, transforming, and generating Extensible Markup Language (XML) documents using the programming language Haskell. HaXml allows converting XML to Haskell data and vice versa, and XML to XML (by transforming or filtering). The common use of the HaXml's parser includes defining the method of traversing the XML data and it has the CFilter type (content filter), where type CFilter = Content -> [Content] . It means that this function defined by the user will take a fragment of an XML data and either return more fragments or none at all. This approach allows to choose XML elements satisfying certain conditions (e.g., tags with certain name or all children of a specified tag). Haskell Radio http://www.example.com/radio/ Description of this podcast First item Second item The following content filter is constructed: channel :: CFilter channel = tag "rss" /> tag "channel" This filter is later used to get the title of the channel: getTitle :: Content -> String getTitle doc = contentToStringDefault "Untitled Podcast" (channel /> tag "title" /> txt $ doc)

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"HaXml". 1736316748. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1268124115

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·