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

2024-05-10

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

<2>
 <abi>Zen</abi>
</2>

它给出的错误如下


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

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

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

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

随机推荐