Hi,
I'm trying to use Expat to read XML from a remote source (over http), but I get this error:
XML error: junk after document element at line 460
The thing is line 460 doesn't exist! My XML source stops at line 457 (I used wc to check the actual file). I know that this error can be caused by the structure of the XML, but when I simplified it I still got the same error, here's the basic kind of layout:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="custom">
<channel>
<website_id></website_id>
<title></title>
<link></link>
<description></description>
<language></language>
<item>
<date></date>
<object_id></object_id>
<version_no></version_no>
<title></title>
<summary>
</summary>
<body>
</body>
</item>
</channel>
</rss>
(The item field is repeated lots of times and I used the term "rss" to ease integration into my CMS, even though it isn't).
Can anyone lend some friendly advice?
Thanks,
James