我们可以在XML文件中使用数字作为文本节点吗?

7 xml

我们可以在XML文件中使用数字作为文本节点吗?例如

<2>
 <abi>Zen</abi>
</2>
Run Code Online (Sandbox Code Playgroud)

它给出的错误如下

Sho*_*ban 16

XML元素必须遵循以下命名规则:

* Names can contain letters, numbers, and other characters
* Names cannot start with a number or punctuation character
* Names cannot start with the letters xml (or XML, or Xml, etc)
* Names cannot contain spaces
Run Code Online (Sandbox Code Playgroud)

http://www.w3schools.com/xml/xml_elements.asp