0

Need to extract a word from a XML

Please help to extract 'eng' word from below code https://code.sololearn.com/cmtYrT93nCpd/?ref=app

13th Feb 2021, 7:20 PM
Raj Charan
3 Respostas
+ 2
Raj Charan DOMTree = xml.dom.minidom.parse(r"Output.xml") language=DOMTree.getElementsByTagName("languageCommunication")[0] print(language.firstChild.getAttribute("code"))
13th Feb 2021, 7:38 PM
Abhay
Abhay - avatar
+ 3
language= collection.getElementsByTagName("languageCode") print(language[0].getAttribute('code'))
13th Feb 2021, 7:41 PM
visph
visph - avatar
+ 1
Thank youvisph and Abhay
13th Feb 2021, 8:38 PM
Raj Charan