下面是我的 xml,我想从中生成 jaxb 模型,我的目标是从项目节点中提取数据。应该使用哪些注释或我的 jaxb 模型类的外观?提前致谢。
<channel>
<title>VIAF Search: Roy Tennant</title>
<link>...</link>
<description>VIAF: Results of search: cql.any all Roy Tennant</description>
<opensearch:totalResults>8</opensearch:totalResults>
<opensearch:startIndex>1</opensearch:startIndex>
<opensearch:itemsPerPage>8</opensearch:itemsPerPage>
<opensearch:link type="application/opensearchdescription+xml"
href="http://viaf.org/allFieldsSearch.xml"
rel="search"/>
<opensearch:Query searchTerms="Roy Tennant" role="request"/>
<item>...</item>
<item>
<title>Tennant, Jeff</title>
<link>http://viaf.org/viaf/41080217</link>
<pubDate>Mon, 22 Feb 2010 06:44:19 GMT</pubDate>
<guid>http://viaf.org/viaf/41080217</guid>
</item>
<item>...</item>
<item>...</item>
<item>...</item>
<item>...</item>
<item>...</item>
<item>...</item>
</channel>