Reputation: 6852
Im looking over some xml files and see some of them are different only in the element names. Are both of these valid xml element names?
<MyOption /> <MyOption/>
Upvotes: 0
Views: 38
Reputation: 944246
You can't have a space in the name (<My Option/>
), but that isn't what you have there.
You have spaces between the end of the name and the end of the tag, which is perfectly acceptable.
The /
character is not part of the name. It is the empty-element tag syntax that causes the tag to represent the whole element (so there are no child nodes and no separate end tag).
Upvotes: 1