Fix config.flags is never passed to xml
Merge pull request #76 from gm112/patch-1

Fix config.flags is never passed to xml