xml store with online mode and offline mode