Fix for parser argument types for Xerces 2.X and 3.X

Add appropriate #ifdefs so that the channel
archiver works with *both* Xerces 2.X and 3.X
correctly regenerate missing year indices

when the current year index can't be created, which
occurs during the first week of the new year.