Fix issue #30: XML printer follows -d option