XML格式不正确

编程入门 行业动态 更新时间:2024-10-27 06:18:52
XML格式不正确 - 特定字符(XML not well formed exception - on specific characters)

嗨,我正在尝试使用字符制作箭头按钮:“<”,“>” 出于某种原因,它尖叫:android:text =“<” 例如,如果我更改为“*”,它将成功编译,我应该更改什么?

Hi I am trying to make an arrow buttons with the characters: "<" , ">" For some reason it screams on : android:text="<" If I change to "*" for example, it will get complied successfully what should I change?

最满意答案

尝试使用&lt; for <和&gt; for>而不是双引号内。

android:text="&lt;"

要么

android:text="&gt;"

Try using &lt; for < and &gt; for > instead inside the double quotes.

android:text="&lt;"

or

android:text="&gt;"

更多推荐

本文发布于:2023-08-07 19:59:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1465644.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不正确   格式   XML

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!