Simple code to deal with XMLParse