Refactor storage, xmlreader and xmlwriter

1. extracted some static Strings and int out from XMLReader and
XMLWriter into Storage because they are the same.