XML file does not appear to have any style information associated with it. XHTML程序出现这个错误
编写xhtml代码出现错误:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<?xml version = "1.0" encoding ="UTF-8"?>
<!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/en" lang= "en" xml:lang = "en"><head><title>First xhtml document</title></head><body><div>This is <abbr title = "www.anacronym.com">an acronym</abbr> in a division.</div><div>This is <cite>a citation</cite> in a division.</div><div>This is <code>some code</code> in a division.</div><div>This is <em>EMPHASIZED TEXT</em> in a division.</div><div>This is <q>a quotation</q> in a division.</div><div>This is <samp>a sample</samp> in a division.</div><div>This is <span>a span </span> in a division.</div><div>This is <strong>strong text</strong> in a division.</div><div>This is <var>a variable name</var> in a division.</div><div><quot>This is a quot</quot></div></body>
</html>
找了半天,终于找到了,因为 <html xmlns = "http://www.w3.org/1999/en" lang= "en" xml:lang = "en">,这句错了,改为:
<html xmlns = "http://www.w3.org/1999/xhtml" lang= "en" xml:lang = "en">
改正后的代码如下:
<?xml version = "1.0" encoding ="UTF-8"?>
<!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml" lang= "en" xml:lang = "en"><head><title>First xhtml document</title></head><body><div>This is <abbr title = "www.anacronym.com">an acronym</abbr> in a division.</div><div>This is <cite>a citation</cite> in a division.</div><div>This is <code>some code</code> in a division.</div><div>This is <em>EMPHASIZED TEXT</em> in a division.</div><div>This is <q>a quotation</q> in a division.</div><div>This is <samp>a sample</samp> in a division.</div><div>This is <span>a span </span> in a division.</div><div>This is <strong>strong text</strong> in a division.</div><div>This is <var>a variable name</var> in a division.</div><div><quot>This is a quot</quot></div></body>
</html>
运行结果如下:
This is an acronym in a division.
This is a citation in a division.
This is some code in a division.
This is EMPHASIZED TEXT in a division.
This is a quotation in a division.
This is a sample in a division.
This is a span in a division.
This is strong text in a division.
This is a variable name in a division.
This is a quot
XML file does not appear to have any style information associated with it. XHTML程序出现这个错误相关推荐
- 阿里云oss的文件无法使用URL访问,返回:This XML file does not appear to have any style information associated with it
问题描述 把静态文件放到阿里云oss,访问时返回一堆XML代码. 问题展示 This XML file does not appear to have any style information as ...
- This XML file does not appear to have any style information associated with it. The document tree is
先写一段代码: <?xml version = "1.0" encoding = "UTF-8"?> <!DOCTYPE htmlPUBLIC ...
- CSDN下载资源报错:This XML file does not appear to have any style information associated with it.
这几次在使用360浏览器下载CSDN资源时,报错: 解决方案:换个浏览器试试,我改用Google给后可以正常下载了 故障原因:未知,或是360浏览器版本低了或确实一些配置,尝试升级360浏览器可解决!
- Binary XML file line #8: Error inflating class android.support.v7.widget.RecyclerView
今天创建了一个 demo ,然后就是复制RecyclerView 过去, 到最后完成运行的时候发现 系统奔溃了, 然后 提示 Binary XML file line #8: Error inflat ...
- Android运行时候报错:android.view.InflateException: Binary XML file line #19: Binary XML file lin
Android运行时候报错:android.view.InflateException: Binary XML file line #19: Binary XML file lin 这个问题自己大致在 ...
- android.view.InflateException: Binary XML file line #7: Binary XML file line #7
错误如下 11-21 08:19:44.040 3608-3608/com.leon.oldrecyclerview E/AndroidRuntime: FATAL EXCEPTION: main ...
- android Binary XML file line #1: Binary XML file line #1: Error inflating class x 问题详解
话不多少,上错误堆栈: Process: com.mci.smagazine, PID: 25065java.lang.RuntimeException: Unable to start activi ...
- 报错android.view.InflateException: Binary XML file line #11: Attempt to invoke virtual method 'boolean
出现这种问题,打开Android monitor的调试信息发现是 android.view.InflateException: Binary XML file line #11: Attempt to ...
- 安卓(android)建立项目时失败,出现Android Manifest.xml file missing几种解决方法?...
安卓(android)建立项目时失败,出现AndroidManifest.xml file missing几种解决方法? Eclipse新建项目,遇到这样的问题,注意如下: 1.文件名最好不要用中文. ...
最新文章
- Psychz租用Switch公司两个数据中心的空间
- 写文件 追加_总结Java中创建并写文件的5种方式
- Eclipse设置控制台日志输出位置
- 4.Python的不堪一击到初学乍练(列表,元组)
- LintCode MySQL 1918. 第二高的球员的身高
- red6.4 mysql_rhel6.4 yum本地yum源配置
- elasticsearch group by java_java elasticsearch聚合查询实例详解
- java控制并发数量_Java并发编程中级篇(二):使用Semaphore信号量进行多个资源并发控制...
- ibm服务器做系统视频,智慧运算 IBM x3650 M4服务器拆机(视频)
- 印染面料产品出现纬斜疵病,应该怎么防止?
- [转]一个程序员的奋斗历程
- cc2530设计性实验代码六
- CloudCompare 软件手册
- 计算机无法登陆提示rpc服务器不可用,电脑提示RPC服务器不可用的解决方法
- 高性能计算专业应用软件大观
- [答疑]能举一个人取代业务实体的例子吗
- C#中调用DLL时未能加载文件或程序集错误的处理方法(详解)
- 踩在云端的温柔!这是我最近穿上就不想脱下来的鞋 | 钛空实测
- 点云法线估计:C++实现
- java-php-python-中美医院病历管理系统计算机毕业设计