added test xml parsing code