当我尝试在chrome中运行此XML文档时,它只是说
This page contains the following errors:
error on line 1 at column 1: Encoding error
下面是第一个错误之前的页面呈现。
<?xml version=“1.0” standalone=“yes”?>
<Projects>
<Project>
<Name>ProductX</Name>
<Number>1</Number>
</Project>
<Project>
<Name>ProductY</Name>
<Number>2</Number>
</Project>
</Projects>
答案 0 :(得分:4)
您必须使用正确的引号。更改第一行:
<?xml version=“1.0” standalone=“yes”?>
要:
<?xml version="1.0" standalone="yes"?>