ITeye博客

XML Declaration must be the first line in the document.

niwtsew · 2010-06-12 17:54 · Reading Notes · 编程语言 · XML · IE · Markdown

The XML declaration typically appears as the first line in an XML document. The XML declaration is not required, however, if used it must be the first line in the document and no other content or white space can precede it.

 

   <?xml version='1.0' encoding='utf-8' ?>
<test>

The XML declaration typically appears as the first line in an XML document. The XML declaration is not required, however, if used it must be the first line in the document and no other content or white space can precede it.

Note: an extra white space precede
IE can parse me.
FF can not.
</test>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。