|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
||||
|
||||
|
Updating XML files...
I'm having trouble with updating XML files...
This code works for reading the values: def getText(nodelist): rc = "" for node in nodelist: if node.nodeType == node.TEXT_NODE: rc = rc + node.data return rc def luo_kayttajalista(userdom,number): controlled = userdom.getElementsByTagName('User_controlled') control = controlled[number] return getText(control.childNodes) contr = open(USERDATA,'r') userdom = xml.dom.minidom.parse(contr) contr.close() User0 = capitalize(luo_kayttajalista(userdom, 0)) BUT the question is, how can I change those values... Thanks for any helps... Miska |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Updating XML files... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|