Look for the lines that have only one colon in them, then start parsing the xml message following; when you reach the final close tag, start looking for lines that have only one colon in them again.