我在 XML中找到了这个Use of Greater Than Symbol,其中的答案是分别使用以下“大于”和“小于”:
> and <Run Code Online (Sandbox Code Playgroud)
但是,我们应该用什么来表示“大于等于”和“小于等于”?
我已经尝试了以下方法,但对我不起作用。
≥ and ≤ and >e; and <e;Run Code Online (Sandbox Code Playgroud)
由于 XML 能够识别 Unicode,因此它更喜欢原始字符 \xe2\x89\xa4 和 \xe2\x89\xa5。或者,≤和≥是对 \xe2\x89\xa4 和 \xe2\x89\xa5 的十六进制字符引用。