Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只是好奇,在 MXML 中,许多标签都是大写的(例如: < Label /> )。我知道这是因为节点名称与节点所代表的类名有关,并且按照惯例,类是大写的。但是 XML 的规则之一是所有节点名称都是小写的。那么这是否意味着 MXML 是无效的 XML?
节点名称必须小写不是 XML 的规则;这只是惯例。因此 MXML 作为 XML 仍然有效。
XML 是区分大小写的,所以<Lable />不是相同的元素类型<lable />
<Lable />
<lable />
XML 区分大小写,因此<label/>不等于<Label/>,但是两者都是有效的 XML。
<label/>
<Label/>