0
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dd="http://example.com/ns/1.0" xml:lang="en-US">
<entry>
<content type="html">Hello World!</content>
<dd:country_code>USA</dd:country_code>
</entry>
我想使用lxml.objectify來訪問'Hello World!'和'美國'。如何做呢?我不關心效率,只是簡單。我嘗試了所有我能想到的無用功。使用objectify獲取具有不同名稱空間前綴的項目