The main can read and create object from the xml