How to Read and Edit XML Nodes

Jackmals

New Member
I am fairly new to all of this and am struggling to find the answer, so any pointers in the right direction would be great.I have an XML file from a system that I have no control over and it produces it like this:\[code\]<?xml version="1.0" ?><WatchConfig><ProcessList> <Process> <RunOnDesktop>0</RunOnDesktop> <DaysToKeepBackup>10</DaysToKeepBackup> <Scheduler> <Active>-1</Active> <Startup>0</Startup> <SelfRepl>0</SelfRepl> <MaxPercent>0</MaxPercent> <Delay>4</Delay> <AsSoon>-1</AsSoon> <OneTime>0</OneTime> <Period>0</Period> <Week>1</Week> <Interval>2</Interval> </Scheduler> <UniqueName>0ZISFZL6O6S5001</UniqueName> <Name>Process1</Name> <Group/> <MetaFileName/> </Process> <Process> <RunOnDesktop>0</RunOnDesktop> <DaysToKeepBackup>10</DaysToKeepBackup> <Scheduler> <Active>0</Active> <Startup>0</Startup> <SelfRepl>0</SelfRepl> <MaxPercent>20</MaxPercent> <Delay>4</Delay> <AsSoon>-1</AsSoon> <OneTime>0</OneTime> <Period>0</Period> <Week>1</Week> <Interval>2</Interval> </Scheduler> <UniqueName>00ZJENPXPX1KL07</UniqueName> <Name>Process2</Name> <Group/> <MetaFileName/> </Process></ProcessList></WatchConfig>\[/code\]What I would like to be able to do is to read through this and amend the Active value under the Scheduler node, ideally being able to specify the name of the process that I want to amend.(as there are two in this example)
 
Back
Top