Need some advice for modifying data in an XML file

I have an XML file used to control a lighting system. I’ve attached a snippet from the file – there are about 8 different colors – UV, Violet, Royal Blue, etc – and my goal is to increase each intensity value by 10 percent. Long-term, I plan to automate config changes with scripts, but for now I’m just trying to get the XML modification sorted.

Any advice for how to proceed with this?

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?> <ramp> <header> <version>2</version> <checksum>787539479</checksum> </header> <colors> <uv> <point> <intensity>114</intensity> <time>500</time> </point> <point> <intensity>119</intensity> <time>510</time> </point> <point> <intensity>124</intensity> <time>520</time> </point> <point> <intensity>133</intensity> <time>530</time> </point> <point> <intensity>142</intensity> <time>540</time> </point> </uv> </colors> </ramp> 

submitted by /u/Nanocephalic
[link] [comments]

Leave a Reply