According to
w3schools[
^], you cannot name a xml element with only digits.
Here are the rules:
Element names are case-sensitive
Element names must start with a letter or underscore
Element names cannot start with the letters xml (or XML, or Xml, etc)
Element names can contain letters, digits, hyphens, underscores, and periods
Element names cannot contain spaces
So, no, it is not possible to define a schema the way you presented it to us (because it would mean defining an element whose name is composed only of digits). Moreover, you seem to confound the name of the element (
id
) with its value (
100
,
200
, etc.).
You would better create a
record
element (for example), having three elements in it:
id
,
name
,
surname
. You can also make these elements as attributes of the
record
element, since they all are simple integer and string values. But that's a matter of personal preference.
Hope this helps.