public void setEncoding(final String encoding) {
        this.encoding = encoding;
    }
Don't end prefix mappings if we are at the root element. Leave the end
processing method to do this.
stroom-pipeline/src/main/java/stroom/pipeline/record/XMLRecordEmitter.java