Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 如何让文本元素说'<';_Xml_Svg - Fatal编程技术网

Xml 如何让文本元素说'<';

Xml 如何让文本元素说'<';,xml,svg,Xml,Svg,我目前正在绘制SVG,希望有一个包含小于符号的文本元素。当我尝试时: <svg xmlns="http://www.w3.org/2000/svg"> <text x="40" y="40" fill="Black" font-size="25" font-weight="bold" font-family="courier new" ><</text> </svg> 字符是HTML和SVG中的特殊字符,用于表示标

我目前正在绘制SVG,希望有一个包含小于符号的文本元素。当我尝试时:

    <svg xmlns="http://www.w3.org/2000/svg">
    <text x="40" y="40" fill="Black" font-size="25" font-weight="bold" font-family="courier new" ><</text>
    </svg>

字符是HTML和SVG中的特殊字符,用于表示标记,如
。当您使用
时,呈现程序认为您正在尝试启动一个新标记
字符是HTML和SVG中的特殊字符,用于表示标记,如
。当您使用我通常参考的
时,呈现程序认为您正在尝试启动一个新标记,您也可以使用十六进制等价物,例如我通常参考的
,您也可以使用十六进制等价物,例如

<svg xmlns="http://www.w3.org/2000/svg">
    <text x="40" y="40" fill="Black" font-size="25" font-weight="bold" font-family="courier new" >&lt;</text>
</svg>