add a demo for reading a object from xml