Python Forum
How to display XML tree structure with Python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to display XML tree structure with Python?
#14
...not quite. Need to replace

siblings[last_level] = 0
with

siblings[this_level+1:] = [0] * (len(siblings) - this_level - 1)
That should now be it. Hopefully. Rolleyes
Reply


Messages In This Thread
RE: How to display XML tree structure with Python? - by mreshko - Aug-12-2020, 02:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Web app structure with python as backend alt19 1 1,973 Oct-06-2020, 11:28 PM
Last Post: scidam
  Cant set api response as tree in Element tree hey_arnold 4 3,706 Mar-04-2019, 03:25 PM
Last Post: dsarin

Forum Jump:

User Panel Messages

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