Digital humanities


Maintained by: David J. Birnbaum (djbpitt@gmail.com) [Creative Commons BY-NC-SA 3.0 Unported License] Last modified: 2025-03-17T21:15:25+0000


Invisible XML assignment 1: Answer key

See the Assignment page for a discussion of the data and the task. Your solution does not have match ours as long as it does what you want, but one possibility is:

films = film++newline, newline?.
film = title, tab, year, tab, country, tab, runtime.
-tab = -#9.
-quote = -#22.
-newline = (-#d?, #a).
title = quote?, ~[#22; #9;#d;#a]+, quote?.
year = ~[#9;#d;#a]+.
country = ~[#9;#d;#a]+.
runtime = ~[#9;#d;#a]+.

Here’s how it works: