Added all the constructors based on simplexml