Just get a reference to the existing <BasePath> element and update its text content. from lxml import etree tree = etree.parse("default.xml") ...
確定! 回上一頁