Another option is to use hickory and parse the query response then search that recursively. Hickory will turn the response into a nested collection of maps with keywords correspond to tags and attributes and content.
Or just skip it if you’re not interested with the problem 