Advanced Functional Prog.


eXtensible Markup Language (XML)

  1. Propose a datatype for simple XML structures composed with text values, and tags having a name and XML parts.
  2. Next, define the concrete grammar for this simplified XML and translate it with parsec. First, use seq to check that a document is well built. Second, use seq1 to return the value represented by the document.
  3. Propose program(s) to extract information in a similar manner of XPath.