XStream - 如何将HTML标记视为内容而不是字段?

时间:2016-07-20 17:29:58

标签: java xstream

我有一些XML在特定字段的内容中包含HTML标记,例如:

<abstract>
<p>
Kringles are autonomous structural domains, found throughout the blood clotting and fibrinolytic proteins. Kringle domains are believed to play a role in binding mediators (e.g., membranes, other proteins or phospholipids), and in the regulation of proteolytic activity [<cite idref="PUB00002414"/>, <cite idref="PUB00001541"/>, <cite idref="PUB00003257"/>].
</p>
<p>
Kringle domains [<cite idref="PUB00003400"/>, <cite idref="PUB00000803"/>, <cite idref="PUB00001620"/>] are characterised by a triple loop, 3-disulphide bridge structure, whose  conformation is defined by a number of hydrogen bonds and small pieces of  anti-parallel beta-sheet. They are found in a varying number  of  copies  in some plasma proteins including prothrombin and urokinase-type plasminogen activator, which are serine proteases belonging to MEROPS peptidase family S1A.
</p>
</abstract>

我不能为我的生活弄清楚如何告诉XStream简单地忽略这些HTML和引用标签(不是&#34;忽略&#34;在&#34;省略的意义上,&# 34;这是XStream.ignoreUnknownElements()或XStream.omitField()所做的。

我想将整个抽象内容整合到字符串中,包括HTML和引用标记。

感谢任何建议!!!

0 个答案:

没有答案