This is the 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>
When I open it it says: This page contains the following errors: error on line 8 at column 1: Extra content at the end of the document
But when there is only this:
<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>
Why is it saying this when there is two?
Bookmark this question.
You need a root node
<?xml version="1.0" encoding="ISO-8859-1"?> <documents> <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> </documents>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With