combine codes into new ParseXmlTest