|
Posted by Michael Winter on 12/20/05 19:47
On 20/12/2005 17:33, Jake Barnes wrote:
> Jake Barnes wrote:
[snip]
>> When I had a straight URL in the <link> tag, or the <comment> tag, then
>> "=" character drew an error and caused my XML to be not-well-formed.
This has nothing to do with an equals symbol, though it took your
follow-up to identify the problem clearly.
[snip]
> XML Parsing Error: not well-formed
>
> Location: http://www.tagcastle.com/rss/photography.xml
> Line Number 7, Column 77:
>
> <link>http://www.tagcastle.com/index.php?whatPage=showOneTag.php&whatTag=photography</link>
In XML (HTML, too) an ampersand (&) marks the beginning of an entity
reference. All 'Name' characters (in brief: mainly letters and numbers)
after that, up to a semicolon (;)[1], identify that entity. The entity
reference above (&whatTag;, I suppose) not only fails to end with a
semicolon, but doesn't exist anyway.
Long story short, the ampersand needs to be changed to an entity
reference, &, just as it would need to be in HTML.
Mike
[1] As I understand it, in SGML, and therefore HTML
(technically), the semicolon wasn't necessary, and the first
character that didn't match the 'name' token would end the
reference. XML is more strict, however.
--
Michael Winter
Prefix subject with [News] before replying by e-mail.
[Back to original message]
|