Scraping all values from first block of xml file


I need your help.

I would like to extract all Values from the first block of a xml file.

The structur is (normally) like this:

<response version="3">
... from here Block 2 and so on


In some cases the xml file look like this:

<response version="3">

In this case I need an Entry like 0 or something in the Result List.

Please provide me with an importcode.

Many thanks