Hi to Everyone, i need to write a code that use Value from an XML file. for my test now I'm trying to do it from and XML that are preset colours and i want use those information to make new preset.
The code in example it's my test, it's a part of the colour Library, I can see the attribute as a individual Name and Individual Value and a name for a preset, I'm lost in the moment that i need to match them.
So my goal it's to set some variable with this value to be able to store a preset with this value and then pass to another preset til the end.
Does anyone can help me out to structure the code?
Thank you
Code
<Preset index="0" name="1000K" preset_mode="Universal" SpecialUse="Normal">
<Values>
<Attributes>
<PresetValue Value="100">
<Attribute name="COLORRGB1"/>
</PresetValue>
<PresetValue Value="0">
<Attribute name="COLORRGB2"/>
</PresetValue>
<PresetValue Value="0">
<Attribute name="COLORRGB3"/>
</PresetValue>
<PresetValue Value="59.058517">
<Attribute name="COLORRGB4"/>
</PresetValue>
<PresetValue Value="0">
<Attribute name="COLORRGB6"/>
</PresetValue>
<PresetValue Value="0">
<Attribute name="COLORRGB7"/>
</PresetValue>
<PresetValue Value="0.015259022">
<Attribute name="COLORRGB11"/>
</PresetValue>
<PresetValue Value="0">
<Attribute name="COLORRGB12"/>
</PresetValue>
</Attributes>
</Values>
</Preset>
Display More