Modify xml values file using python

ThePlanet

New Member
I'm very new to python and I need to modify the \[code\]<test name="test02"></xmpp> to <test name="test03"></xmpp> <temp-config>QA</temp-config> to <temp-config>Prod</temp-config> \[/code\]for all 5 occurrences using python. Not sure what lib to use. Any help in this is really appreciated.\[code\]<config><logging></logging><test-mode>false</test-mode><test name="test02"></xmpp><mail></mail><test-system>0</test-system><system id="0" name="suite1" type="regression"> <temp-config>QA</temp-config> <rpm>0.5</rpm> <cycles>3</cycles></system><system id="1" name="suite2" type="regression"> <temp-config>QA</temp-config> <rpm>0.5</rpm> <cycles>3</cycles></system><system id="2" name="suite3" type="regression"> <temp-config>QA</temp-config> <rpm>0.5</rpm> <cycles>3</cycles></system><system id="3" name="suite4" type="regression"> <temp-config>QA</temp-config> <rpm>0.5</rpm> <cycles>3</cycles></system><system id="4" name="suite5" type="regression"> <temp-config>QA</temp-config> <rpm>0.5</rpm> <cycles>3</cycles></system></config>\[/code\]
 
Back
Top