无文法约束(DTD或XML模式),用于在文档检测(Android的) [英] No grammar constraints (DTD or XML schema) detected for the document (Android)

查看:286
本文介绍了无文法约束(DTD或XML模式),用于在文档检测(Android的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有许多同样的问题在这里,但我有XMLNS:Android和XML = ...标签。
不过我有同样的错误。我不wan't只需点击忽略,而不是在这里,所以因此问题张贴设置警告。

来源是:

 <?XML版本=1.0编码=UTF-8&GT?;
<网格布局的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
    机器人:layout_width =match_parent
    机器人:layout_height =match_parent>
< /网格布局>

错误:


  

否语法约束(DTD或XML模式)检测到的
  文件。 grid_layout_test2.xml / SomeProject / RES /布局行1 XML
  问题



解决方案

对我来说,是字符编码 UNIX FILEMODE 在Windows上运行Eclipse的一个问题:

刚刚度过完整的code,板缺贴回(简称: CTRLA-CTRLX所-CtrlV )和一切都很好 - 没有更多的无语法约束......警告

I have the same problem as many here, but i DO HAVE xmlns:android and the xml=... tags. Still I have the same error. I don't wan't just click the ignore instead of warning in the settings so hence the question here posted.

The source is:

<?xml version="1.0" encoding="utf-8"?>
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >


</GridLayout>

The error:

"No grammar constraints (DTD or XML schema) detected for the document. grid_layout_test2.xml /SomeProject/res/layout line 1 XML Problem"

解决方案

For me it was a Problem with character encoding and unix filemode running eclipse on Windows:

Just marked the complete code, cutted and pasted it back (in short: CtrlA-CtrlX-CtrlV) and everything was fine - no more "No grammar constraints..." warnings

这篇关于无文法约束(DTD或XML模式),用于在文档检测(Android的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆