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.
精彩评论