错误消息...“prolog中不允许内容。” [英] An error message... "Content is not allowed in prolog."

查看:428
本文介绍了错误消息...“prolog中不允许内容。”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,错误信息......


"请先验证您的XML文档!

第1行

第1栏


prolog中不允许使用内容。

当我尝试验证我的CSS时会出现
。 ..


我知道,我知道......这是html新闻组...但问题出在html

文件中保存为UTF- 8由windows记事本。


当然,当我用十六进制编辑器查看文件时,我会在第一个''<'之前看到三个字节

'(我希望看到''<''作为第一个字节,而不是

fouth字节。


所以,这是一个问题还是我做错了什么。


我发誓这个''字符编码'',''字符曲目'',字体选择

mularky是最复杂的在我所有的

经历中见过的糟糕的东西...

-

-
Ri ************* @ comcast.net
http://RichardRPlourde.home.comcast.net

Well, the error message...

"Please, validate your XML document first!
Line 1

Column 1

Content is not allowed in prolog."

comes up when I try to verify my CSS...

I know, I know... this is html newsgroup... but the problem is in the html
file being saved as UTF-8 by windows notepad.

Of course, when I look at the file with a hex editor I see three bytes
before the first ''<'' (I expect to see the ''<'' as the first byte, not the
fouth byte.

So, is this a problem or have I done something wrong.

I swear this ''character encoding'', ''character repertoire'', font selection
mularky is the most convoluted crock of shit I have ever seen in ALL of my
experiences...
--
--
Ri*************@comcast.net
http://RichardRPlourde.home.comcast.net

推荐答案

2004年9月12日星期日02:27:54 -0400,Richard R Plourde

< Se ********* @ hotmail.com>写道:
On Sun, 12 Sep 2004 02:27:54 -0400, Richard R Plourde
<Se*********@hotmail.com> wrote:
"请先验证您的XML文档!
第1行

第1列

内容是不允许在prolog中。
"Please, validate your XML document first!
Line 1

Column 1

Content is not allowed in prolog."




你不觉得我们可以从URL中受益吗?来吧,我们不是很好的''

千里眼!



Don''t you think we can benefit from a URL?? Come on, we aren''t friggin''
clairvoyant!


>你不觉得我们可以从URL中受益吗?来吧,我们并没有感到高兴''
> Don''t you think we can benefit from a URL?? Come on, we aren''t friggin''
千里眼!




在帖子的最后一行...... ...........


除非你想要这个....

http://jigsaw.w3.org /css-validator/v...net/index.html




on the last line of the post.................

unless of course you want this....

http://jigsaw.w3.org/css-validator/v...net/index.html



" Richard R Plourde" <硒********* @ hotmail.com>写道:
"Richard R Plourde" <Se*********@hotmail.com> wrote:
我知道,我知道......这是html新闻组......但问题是在
html文件中被windows记事本保存为UTF-8 。

当然,当我用十六进制编辑器查看文件时,我会在第一个''<''之前看到三个字节(我希望看到''<' '作为第一个字节,而不是第四个字节。


Windows记事本总是添加一个UTF-8字节顺序标记(ef bb bf),

即使它不是必需的,也会导致非Microsoft

工具的错误,这些工具并不是他们所期待的。


你可以:


使用不同的GUI编辑器,如Unipad( http: //www.unipad.org/

使用记事本撰写文件,然后使用vi或十六进制编辑器

剥去前三个字符。

- ; K
I know, I know... this is html newsgroup... but the problem is in the
html file being saved as UTF-8 by windows notepad.

Of course, when I look at the file with a hex editor I see three bytes
before the first ''<'' (I expect to see the ''<'' as the first byte, not
the fouth byte.
Windows Notepad always adds a UTF-8 byte-order mark (ef bb bf),
even though it''s not required and causes errors in non-Microsoft
tools that aren''t expecting it.

You could either:

Use a different GUI editor like Unipad (http://www.unipad.org/)

Use Notepad to compose your file, then use "vi" or a hex editor
to strip the first three characters.
--;K



这篇关于错误消息...“prolog中不允许内容。”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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