Encapsulate xml parsing

to own private method loadFromXml (so it could be used without
OpenFileDialog e.g. for loading Demo2 in another way.