开发者

equivalent of space character in xml root tag

开发者 https://www.devze.com 2023-03-22 04:39 出处:网络
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

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

精彩评论

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