473,772 Members | 2,965 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Very odd. Check out this RSS feed that my PHP script just built:

http://www.tagcastle.com/rss/photography.xml

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. So
I hit it with the PHP command rawurlencode, and now it draws no error,
but it no longer works as a link.

What did I do wrong?

Dec 20 '05 #1
4 4432

Jake Barnes wrote:
Very odd. Check out this RSS feed that my PHP script just built:

http://www.tagcastle.com/rss/photography.xml

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. So
I hit it with the PHP command rawurlencode, and now it draws no error,
but it no longer works as a link.

What did I do wrong?


I should add, when I don't hit the query string with rawurlencode(),
I"m getting this error:

XML Parsing Error: not well-formed

Location: http://www.tagcastle.com/rss/photography.xml
Line Number 7, Column 77:

<link>http://www.tagcastle.c om/index.php?whatP age=showOneTag. php&whatTag=pho tography</link>
--------------------------------------------------------------------------------------------------------^

Dec 20 '05 #2
"Jake Barnes" <lk******@geoci ties.com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .
I should add, when I don't hit the query string with rawurlencode(),
I"m getting this error:

XML Parsing Error: not well-formed

Location: http://www.tagcastle.com/rss/photography.xml
Line Number 7, Column 77:

<link>http://www.tagcastle.c om/index.php?whatP age=showOneTag. php&whatTag=pho tography</link>
--------------------------------------------------------------------------------------------------------^

Perhaps it's the & that's causing the problem - try &amp; instead

HTH

Nadeem
Dec 20 '05 #3
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.c om/index.php?whatP age=showOneTag. php&whatTag=pho tography</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.
Dec 20 '05 #4
Jake Barnes wrote:
Very odd. Check out this RSS feed that my PHP script just built:

http://www.tagcastle.com/rss/photography.xml


Not Found
The requested document was not found on this server.

Web Server at tagcastle.com

///Peter

Dec 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2590
by: lecichy | last post by:
Hello. Well, I found this piece of code on php.net. Thats fine but where can i find explanation for all these ("|\')?(*)("|\')?.*>(*)' syntax so that I can construct my own rules for all kind of eregi preg and oter match functions ?
3
4577
by: Lars Schlanbusch | last post by:
Hi! Is there any way to set <base target="_blank"> for links which link to a page outside the domain, and <base target="_self"> for links which link to a page inside the domain? Can i do such a thing in the global.asa file or maybe in an other include asp file? I am working on a site with 3-4000 hyperlinks, and I do not look forward to "marching" through every each one ove them and set target to _blank og _self...
9
2961
by: Francesco Moi | last post by:
Hello. I'm trying to build a RSS feed for my website. It starts: ----------------//--------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd"> <rss version="0.91"> ----------------//----------------------
6
17167
by: Todd Peterson | last post by:
I'm encountering some wierd behavior with a <link> tag over an HTTPS connection, vs. an HTTP connection... In an ASP/HTML page on my website, I've add a <link rel="shortcut icon"...> in order to allow the users to add a shortcut (with icon) on their desktop, as well as seeing the icon in the URL. Our development server allows both HTTP and HTTPS connections, but the icon only appears to be available when requesting the page via HTTP???...
3
7300
by: Islam Elkhayat | last post by:
Hello everybody Ihave few .CSS files, I let user select the color schema of the whole site using a radiobutton and save it in a cookie.. I want to retrieve the value of the cookie <link href=" HERE " rel="stylesheet"> i try to put it using InnerHtml or InnerText but it fail using div, span so on... how can i handle this.. thanx
5
1712
by: Jake Barnes | last post by:
Very odd. Check out this RSS feed that my PHP script just built: http://www.tagcastle.com/rss/photography.xml 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. So I hit it with the PHP command rawurlencode, and now it draws no error, but it no longer works as a link. What did I do wrong?
4
5082
by: Gary li | last post by:
Hi, all I find "template template" class cann't been compiled in VC6 but can ok in Redhat9. I write a test program like as: template< template<class> class T> class A { }; int main() { return 0;
1
7298
by: sharmadeep1980 | last post by:
Hi All, I am facing a very unique problem while compling my project in "Release" build. The project is building in DEBUG mode but giving linking error on Release build. Here is the error: Creating library Release/fnimqcmd.lib and object Release/fnimqcmd.exp CoIMQCmd.obj : error LNK2001: unresolved external symbol
5
39013
by: chakradhari.ashish | last post by:
Does anybody know how can I load an html page inside a <div</div> where the content gets update on the onclick even of anchor <a href=> </a>? I googled around and followed some links pointing me that it is possible to use javascript combined with CSS for doing this? Any ideas? Chakra
0
9620
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10104
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8934
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.