Port to Xerces 3.

my distro doesn't contain xerces2 anymore, and I found a note from 2010 that it should be ported to xerces3, so I thought it a bit overdue. :-)

I'm not sure what the best way to test everything is, though, trying to run "make tests" doesn't find any tests.