开发者

equivalent of space character in xml root tag

I want to have a xml root tag with a space character, but since the naming conventions do not allow 开发者_JAVA技巧spaces in xml tags, I want to pass something of equivalent to a space character to be passed as xml root tag.

Is that possible?


PascalCase, camelCase, or underscores are your best bets:

<underscores_are_valid>
    <camelCase>Data</camelCase>
    <PascalCase>More Data</PascalCase>
</underscores_are_valid>


If an obvious means to distinguish words in the root node is that important, I'd use <camelCase> to name the element.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜