2018-03-03, 22:00
I'm making a kodi addon and I'm wondering if there is a way to declare a variable in the XML for redundant information. Below is a very simple example. The two images have a width of 828. Is there a way to set this width value in one place so I don't have to make changes all over the code? Thanks.
Quote:<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<window>
<coordinates>
<system>1</system>
<posx>120</posx>
<posy>70</posy>
</coordinates>
<controls>
<!--background image-->
<control type="image">
<width>828</width>
<height>600</height>
<texture>image.png</texture>
</control>
<!--background overlay-->
<control type="image">
<width>828</width>
<height>585</height>
<texture>image2.png</texture>
</control>
</controls>
</window>