擅长:python、mysql、java
<p>您使用了错误的命名空间。这适用于Jython 2.5.1:</p>
<pre><code>from xml.etree import ElementTree as ET
element = ET.fromstring(value) # `value` is a string with the xml from question
namespace = "{http://purl.org/dc/elements/1.1/}"
for e in element.getiterator(namespace+'identifier'):
print e.text
</code></pre>
<h3>输出</h3>
^{pr2}$