The FILTERXML function uses XPath to match and extract data from text in XML format.

In the example shown cell B5 contains XML data that describes 10 music albums.

For each album, there is information about the title, the artist, and the year.

Excel FILTERXML function