Use proper XML parsing instead of regular expressions, part 1.

(For the first pass, assembling the set of ways to examine.)