I’ve since discovered that this is a known version in Xerces C++ 2.2 and has since been fixed, so there is a patch.