adds jms/serializer to serialize to dom,adds proper libxml error handling