我所拥有的:<xliff:g>在xml文件中带有标签的行:<string name="AAAAAAA" msgid="XXXXXXX">"Activity <xliff:g id="BBBBBBB">%1$s</xliff:g> isn\'t responding."\n\n"Do you want to close it?"</string>我需要什么:读取与以下内容相同的整个字符串:Activity %1$s isn't responding.\n\nDo you want to close it?库德,请您帮忙?我尝试使用xml.dom.minidom。dom = xml.dom.minidom.parse(xmlfile)strings = dom.getElementsByTagName('string')for string in strings: rText = string.childNodes[0].nodeValue print(rText)结果是“活动
添加回答
举报
0/150
提交
取消