XML can currently be serialized to a file, but not a string
[springmeyer] added in r1260
[springmeyer] python bindings added in r1261
[springmeyer] re-opening for review before next release as I'm not sure this is the best name for this function
[springmeyer] renamed in r1457, this technically should not present any compatibility problems as this has not yet been part of a release.