kirancodes.me
To Proof Maintenance & Beyond!
ICFP 1999★ Most Influential ICFP Paper (awarded 2009)

Haskell and XML: Generic Combinators or Type-Based Translation?

Malcolm Wallace, Colin Runciman

Abstract

We present two complementary approaches to writing XML document-processing applications in a functional language.In the first approach, the generic tree structure of XML documents is used as the basis for the design of a library of combinators for generic processing: selection, generation, and transformation of XML trees.The second approach is to use a type-translation framework for treating XML document type definitions (DTDs) as declarations of algebraic data types, and a derivation of the corresponding functions for reading and writing documents as typed values in Haskell.

Related papers