Fix parsing of activity set

Make the doc property of each file into the top-level
element.