filter/xml set source config as required

Fix for LOGSTASH-1581

Consistent solution with json filter.