1

Can i create an element with forward slash as part of the name?

<Data>
<DataRow>
<Orange/Apple> fruit </Orange/Apple>
</DataRow>
</Data>

seems invalid to me but just want to confirm.

Josef Van Zyl
  • 915
  • 3
  • 19
  • 43
Gauls
  • 1,955
  • 6
  • 28
  • 44
  • 10
    I don't see what your question body has to do with your question title. A forward slash isn't 0x20... – Jon Skeet Feb 21 '13 at 10:42

1 Answers1

3

Can i create an element with forward slash as part of the name?

No, according to the grammar pulished on the W3.org website it is not a valid character in a name.

hexadecimal value 0x20 cannot be included in a name

0x20 is the space character and you will see that it is not on the list of valid NameChars. It is considered whitespace unless it is part of a value.

slugster
  • 49,403
  • 14
  • 95
  • 145