parsing user agent into xml file