如何在xv / spring中将xml转换为纯文本或html格式
以下是我的电子邮件模板
<?xml version = '1.0'?>
<m name="cpt">
Dear Customer,
find below details [Dynamic Value].
[Dynamic Values.]
Thanks,
cpt page
</body>
</email>
我有一个方法
String email = getXmlTemplateInStringFormat()
它给我xml的字符串格式,如下所示 示例Xml outPut
<?xml version = '1.0'?>
<m name="cpt">
Dear Customer,
find below details For xyz product.
info
details:
First Value fValue
Title xyz
Second Value svalue
Third V A and B
email abc@xyz.com
date 11/11/2011
address:
email abc@xyz.com
mobile 2382919xxxx
Fv dummyValue
Country xyz
Order
Number zxc123
date 11/11/2011
order no cbz21us
Total 40
Thanks,
cpt page
</body>
</email>
我希望输出应该没有任何xml标签
Dear Customer,
find below details For xyz product.
info
details:
First Value fValue
Title xyz
Second Value svalue
Third V A and B
email abc@xyz.com
date 11/11/2011
address:
email abc@xyz.com
mobile 2382919xxxx
Fv dummyValue
Country xyz
Order
Number zxc123
date 11/11/2011
order no cbz21us
Total 40
Thanks,
cpt page
我怎样才能实现这一输出?