I should be able to extract all the values in the “value” tag (A1,B5 in the first case), only for event = “A = Red”. Then below is the list of “value” tags (F2 in the second case), for event = “A = Green”. I could have up to 20 “value” tags and 10 different “event” tags.