Reply to Re: RSS 2.0 question - why are "=" characters not allowed in URLs, even inside the <link> tag?

Your name:

Reply:


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, &amp;, 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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация