【问题标题】:How to insert line breaks dbunit dataset如何插入换行符dbunit数据集
【发布时间】:2010-05-06 12:04:52
【问题描述】:

如何在 dbunit 数据集中插入换行符?像这样:

    <user id="1" 
story="first line
       second line
       third line"/>

如果我这样做,db 中的字段 story 只显示为空格,但我需要换行。

【问题讨论】:

    标签: xml dataset dbunit


    【解决方案1】:

    Upps,我找到了解决方案:

    <user id="1" 
    story="first line&#13;&#10;second line&#13;&#10;third line"/>
    

    【讨论】:

    • 谢谢,这正是我需要的!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-05-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多