Reputation: 4695
Is it possible to use square brackets in an XML element's name?
for instance:
<root>
<Data.Entity.Result[0]>Hello</Data.Entity.Result[0]>
</root>
I tried using escape characters like...
[
[
[
...and so forth, but I still get validation errors.
Upvotes: 1
Views: 3208
Reputation: 52878
No you can't use square brackets (or entity references) in element names.
See http://www.w3.org/TR/REC-xml/#sec-common-syn (especially the "Names and Tokens" section).
Upvotes: 2