开发者

How to display <tag> </tag> as opposed to <tag/> in XStream

When I serialize my objects into xml, empty tags 开发者_JAVA百科are set as <tag\>

I would like <tag></tag>.

How can I do this?


Since <tag></tag> and <tag /> mean exactly the same thing in XML, most XML parser choose to use the representation that takes less space.

As far as I know, this is not something a user can control.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜