There is no subscript notation in XML parsing.
It should be ...,time,1,... and you XML parsing procedure(s) should check each key along the path for whether or not it is a number.
For a number in the path, that number should be used as an index in a select item n from list block, instead of a lookup in pairs block.
<weatherdata>
<location>
<name>Comune di Bari</name>
<type/>
<country>IT</country>
<timezone>7200</timezone>
<location altitude="0" latitude="41.1177" longitude="16.8512" geobase="geonames" geobaseid="6542001"/>
</location>
<credit/>
<meta>
<lastupdate/>
<calctime>0</calctime>
<nextupdate/>
</meta>
<sun rise="2022-08-16T04:03:00" set="2022-08-16T17:51:07"/>
<forecast>
<time from="2022-08-16T15:00:00" to="2022-08-16T18:00:00">
<symbol number="500" name="pioggia leggera" var="10n"/>
<precipitation probability="0.26" unit="3h" value="0.53" type="rain"/>
<windDirection deg="119" code="ESE" name="East-southeast"/>
<windSpeed mps="0.75" unit="m/s" name="Calm"/>
<windGust gust="1.4" unit="m/s"/>
<temperature unit="celsius" value="30.61" min="29.62" max="30.61"/>
<feels_like value="31.98" unit="celsius"/>
<pressure unit="hPa" value="1011"/>
<humidity value="50" unit="%"/>
<clouds value="cielo sereno" all="0" unit="%"/>
<visibility value="10000"/>
</time>
<time from="2022-08-16T18:00:00" to="2022-08-16T21:00:00">
<symbol number="800" name="cielo sereno" var="01n"/>
<precipitation probability="0.06"/>
<windDirection deg="354" code="N" name="North"/>
<windSpeed mps="0.66" unit="m/s" name="Calm"/>
<windGust gust="1.82" unit="m/s"/>
<temperature unit="celsius" value="30.01" min="28.8" max="30.01"/>
<feels_like value="31.56" unit="celsius"/>
<pressure unit="hPa" value="1011"/>
<humidity value="53" unit="%"/>
<clouds value="cielo sereno" all="6" unit="%"/>
<visibility value="10000"/>
</time>
<time from="2022-08-16T21:00:00" to="2022-08-17T00:00:00">
<symbol number="800" name="cielo sereno" var="01n"/>
<precipitation probability="0.04"/>
<windDirection deg="332" code="NNW" name="North-northwest"/>
<windSpeed mps="1" unit="m/s" name="Calm"/>
<windGust gust="1.69" unit="m/s"/>
<temperature unit="celsius" value="28.69" min="27.73" max="28.69"/>
<feels_like value="30.66" unit="celsius"/>
<pressure unit="hPa" value="1012"/>
<humidity value="61" unit="%"/>
<clouds value="cielo sereno" all="6" unit="%"/>
<visibility value="10000"/>
</time>
For specific blocks, export a .aia file and post it here.
Here is a sample XML explorer app you can try ...
Also see samples in