xml提示有错

qq_38289619 2019-03-30 05:29:16
我这里不知道为什么提示xml后必须要接“=”,可是代码是没错的,不知道怎么改。在第二个错误处显示Attribute name "http:" associated with an element type "web-app" must be followed by the ' = ' character. 有哪位大神知道怎么办吗?谢谢啦


<?xml version="1.0" encoding="UTF-8"?>//此处打了红叉,无提示内容

<web-app version="2.5"

xmlns="http://java.sun.com/xml/ns/javaee"

xmlns:xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee"

http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">//此处打了红叉,并提示Attribute name "http:" associated with an element type "web-app" must be followed by the ' = ' character.

<display_name>Archetype Created Web Application</display_name>

</web-app>
...全文
379 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
NANU-NANA 2019-10-04
  • 打赏
  • 举报
回复
xsi:schemaLocation 里第一项去掉后引号。 请及时结帖。
milaoshu1020 2019-04-02
  • 打赏
  • 举报
回复
改成这样试试:

<?xml version="1.0" encoding="UTF-8"?>//此处打了红叉,无提示内容

<web-app version="2.5"

xmlns="http://java.sun.com/xml/ns/javaee"

xmlns:xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

<display_name>Archetype Created Web Application</display_name>

</web-app>

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧