added xmlDeclaration option to init