cpp: xerces: Add minor fixes and tests of the DOM wrappers