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