Resolve #416: Described XML attribute exceptions

#416, processing/processing#2367
Also fixed typos.