+ 8
why dose the new element not get appended to the xml file i made?
here is the code https://code.sololearn.com/c2a7Khyw10R6/#py on a side note, why is #document printed? i dont see it in the file
2 Antworten
+ 2
Your new XML element did get appended.
However, the skills list needs to be refreshed with the updated changes to the document.
Just add this line again before printing the skills a second time.
skills = doc.getElementsByTagName("skill")
+ 7
David Carroll cool thanks.