Problem 43658. When Was That Goal Scored?
We want to find out when the goals were scored in a particular soccer game. For each game, we are given a "Goal Event Data" XML string from a soccer database. Your job is to pick out the "Elapsed Time" number for each goal. Return the numbers for each goal as a column vector of double precision numbers.
This translates to finding the number between the "<elapsed>" tags.
Given this input
ged = '<goal><value><elapsed>22</elapsed><subtype>header</subtype></value></goal>'
you should return the number 22.
Note that you must return the number 22 and not the string.
Solution CommentsShow comments
Problem Recent Solvers96