Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parsing xml
#3
I got it working. I had to iterate through subelements and then edit the attribute as below

  for subelem in list(element):
            subelem.set('destination', target_string_list[0])
            subelem.set('folderPath', target_string_list[1])
ibreeden likes this post
Reply


Messages In This Thread
Parsing xml - by ateestructural - Apr-06-2021, 01:08 PM
RE: Parsing xml - by ateestructural - Apr-06-2021, 01:54 PM
RE: Parsing xml - by ateestructural - Apr-06-2021, 07:09 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020