Throw ParseException if the attribute name or value is empty.