這是XML:XML錯誤:在文檔的末尾附加內容
<?xml version="1.0" encoding="ISO-8859-1"?>
<document>
<name>Sample Document</name>
<type>document</type>
<url>http://nsc-component.webs.com/Office/Editor/new-doc.html?docname=New+Document&titletype=Title&fontsize=9&fontface=Arial&spacing=1.0&text=&wordcount3=0</url>
</document>
<document>
<name>Sample</name>
<type>document</type>
<url>http://nsc-component.webs.com/Office/Editor/new-doc.html?docname=New+Document&titletype=Title&fontsize=9&fontface=Arial&spacing=1.0&text=&</url>
</document>
當我打開它,它說:This page contains the following errors: error on line 8 at column 1: Extra content at the end of the document
但是如果只有這個:
<document>
<name>Sample</name>
<type>document</type>
<url>http://nsc-component.webs.com/Office/Editor/new-doc.html?docname=New+Document&titletype=Title&fontsize=9&fontface=Arial&spacing=1.0&text=&</url>
</document>
這很好。爲什麼說有這個兩個?
[第1欄第2行錯誤:在文檔的末尾附加內容]的可能的複製(http://stackoverflow.com/questions/4544272/error -on-line-2-at-column-1-extra-content-end-of-the-document) –