Hadn't accounted for the fact that node names (tags) can contain numeric characters.  Xpath parsing now handles that correctly.