For improve the performance, the xml variable is now a instance variable, so the xml will be open just for wq!the
first time.