not sure, i just did a seach on community
this for example :
sensor:
- platform: scrape
resource: http://USERNAME:PASSWORD@IP:PORT/xml/ix.xml
select: "ds2"
value_template: '{{ (value | int) / 10 }}'
unit_of_measurement: "°C"
name: Zgoraj-T
copy pasted from here : Scrape Sensor - XML reading