473,388 Members | 1,499 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Annoying Problem Trying To Validate An XML Feed. Losing My Mind!Please Help!

I tried tackling this problem about 6 months ago, but after going
almost completely insane I gave up, since my news feed seemed to
display just fine anyways. However, in an effort to have my feeds in
complete compliance, I am trying to deal with the problem again.

When I try to validate my feeds I get the following error:

Line 17, column 0: Invalid HTML: unknown declaration: u'BR', at line
5, column 124 (277 occurrences) [help]
<BR>"<a target="_blank" href="http://
forumserve ...

So it's the "<BR>" that's causing the problem.

I went through the help and tried what it recommends, using & to
escape the code (like so: <BR>), but then not only do I
still get this error, but none of my actual web pages that display
this same content work anymore either.

Are there any experts out there that have run into this before?
Aug 11 '08 #1
8 2317
Greg C. wrote:
I tried tackling this problem about 6 months ago, but after going
almost completely insane I gave up, since my news feed seemed to
display just fine anyways. However, in an effort to have my feeds in
complete compliance, I am trying to deal with the problem again.

When I try to validate my feeds I get the following error:

Line 17, column 0: Invalid HTML: unknown declaration: u'BR', at line
5, column 124 (277 occurrences) [help]
<BR>"<a target="_blank" href="http://
forumserve ...

So it's the "<BR>" that's causing the problem.
Can you post the URL to a minimal but complete feed that shows the
problem and also post the URL of the feed validator you use?

--

Martin Honnen
http://JavaScript.FAQTs.com/
Aug 11 '08 #2
On Aug 11, 10:43*am, Martin Honnen <mahotr...@yahoo.dewrote:
Greg C. wrote:
I tried tackling this problem about 6 months ago, but after going
almost completely insane I gave up, since my news feed seemed to
display just fine anyways. However, in an effort to have my feeds in
complete compliance, I am trying to deal with the problem again.
When I try to validate my feeds I get the following error:
Line 17, column 0: Invalid HTML: unknown declaration: u'BR', at line
5, column 124 (277 occurrences) [help]
* * *&lt;BR&gt;&quot;&lt;a target=&quot;_blank&quot; href=&quot;http://
forumserve ...
So it's the "&lt;BR&gt;" that's causing the problem.

Can you post the URL to a minimal but complete feed that shows the
problem and also post the URL of the feed validator you use?

--

* * * * Martin Honnen
* * * *http://JavaScript.FAQTs.com/

The feed is: http://greg.ca/facebook-feed/

The validator is: http://www.feedvalidator.org
Aug 11 '08 #3
Greg C. wrote:
The feed is: http://greg.ca/facebook-feed/
What is
&lt;!BR&gt;&lt;!BR&gt;
supposed to be? That exclamation mark does not seem to belong in there.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Aug 11 '08 #4
On Aug 11, 11:12*am, Martin Honnen <mahotr...@yahoo.dewrote:
Greg C. wrote:
The feed is:http://greg.ca/facebook-feed/

What is
* *&lt;!BR&gt;&lt;!BR&gt;
supposed to be? That exclamation mark does not seem to belong in there.

--

* * * * Martin Honnen
* * * *http://JavaScript.FAQTs.com/
It's just a commented out <BR>, ie <!BR>, so that it doesn't actually
render.

Oh dear god, please tell me that's not what's causing this problem.
Aug 11 '08 #5
On Aug 11, 11:46*am, "Greg C." <greg...@gmail.comwrote:
On Aug 11, 11:12*am, Martin Honnen <mahotr...@yahoo.dewrote:
Greg C. wrote:
The feed is:http://greg.ca/facebook-feed/
What is
* *&lt;!BR&gt;&lt;!BR&gt;
supposed to be? That exclamation mark does not seem to belong in there.
--
* * * * Martin Honnen
* * * *http://JavaScript.FAQTs.com/

It's just a commented out <BR>, ie <!BR>, so that it doesn't actually
render.

Oh dear god, please tell me that's not what's causing this problem.
WOW!! After all the time I put into this, and all the fixes/
workarounds I tried, that WAS the problem!! Unbelievable.

It's amazing how a simple question can make you start thinking on a
totally different path.

Thank you so much Martin!
Aug 11 '08 #6
Greg C. wrote:
It's just a commented out <BR>, ie <!BR>, so that it doesn't actually
render.
Is that proper SGML/HTML comment syntax in your view, or just some
syntax you made up?
Try whether removing that part makes the validator happy, to me it looks
like the most probably cause of that warning.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Aug 11 '08 #7
On Aug 11, 11:53*am, Martin Honnen <mahotr...@yahoo.dewrote:
Greg C. wrote:
It's just a commented out <BR>, ie <!BR>, so that it doesn't actually
render.

Is that proper SGML/HTML comment syntax in your view, or just some
syntax you made up?
Try whether removing that part makes the validator happy, to me it looks
like the most probably cause of that warning.

--

* * * * Martin Honnen
* * * *http://JavaScript.FAQTs.com/
I'm not sure if it's proper syntax, but it's worked for years so I've
always done it for testing purposes (ie. if I want to see how
something works without an HTML tag but I don't want to have to
actually take it out and then put it back in after the test). I've
used this for as long as I can remember and have never had a problem
before, but I guess now that it's being processed through XML (my
first attempt at XML/news feeds), it does in fact cause issues.

I removed those from the RSS generation code, changed the limit from 5
posts to ALL posts for that feed, and now absolutely everything
validates. I can't believe that's what the problem was... I feel like
such a moron :P
Aug 11 '08 #8
On 11 Aug, 17:02, "Greg C." <greg...@gmail.comwrote:
On Aug 11, 11:53*am, Martin Honnen <mahotr...@yahoo.dewrote:
Greg C. wrote:
It's just a commented out <BR>, ie <!BR>, so that it doesn't actually
render.

I'm not sure if it's proper syntax, but it's worked for years so I've
always done it for testing purposes (ie. if I want to see how
something works without an HTML tag but I don't want to have to
actually take it out and then put it back in after the test). I've
used this for as long as I can remember and have never had a problem
before, but I guess now that it's being processed through XML (my
first attempt at XML/news feeds), it does in fact cause issues.
FWIW I've often commented out HTML tags using something like <xBR>.
The x obviously turns it into an unknown tag which is ignored.

The full commenting out would naturally require something like: <!--
BR-->

HTH,

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://www.codalogic.com/lmx/ for more info
Aug 21 '08 #9

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

Similar topics

4
by: lkrubner | last post by:
I've a client who, I think, writes his essays in Microsoft Word on a Macintosh, then copies and pastes it to a form to upload it to his weblog. The weblog then creates an RSS feed. The weblog and...
1
by: news.tie.cl | last post by:
Hello to all, I am developing an application ASP and desire to validate the fields of dates before jumping to consultation SQL, the dates is entered text boxes and the idea is that been worth when...
2
by: Ayende Rahien | last post by:
I've the following code, taken from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexxml/html/xml02172003.asp to select a node from RSS file. However, I'm always getting a null...
86
by: Michael Adams | last post by:
I don't know if you have noticed, but it seems like Microsoft is losing interest in C#, and putting their energy into Visual Basic.NET instead. For instance, online chats by language since July...
8
by: K. Shier | last post by:
when i have the following code inside the .vb file that defines 'Public MustInherit Class frmDataEntry', if i try to open a derived form based on frmDataEntry, i get an error "Could not find any...
6
by: Steven | last post by:
Hi, I am trying to position 2 columns of links so that the first is at the left of the page and the second is at the right. The lines in each column should be left-justified. I have managed...
5
by: light of mind. heavy of belly | last post by:
Hi, I need to validate that at one of 2 textboxes has some data in it. Is it possible to hook the validation system to do this bearing in mind that empty textboxes are not evaluated? Thanks...
26
by: webrod | last post by:
Hi, I have some php pages with a lot of HTML code. I am looking for a HTML validator tool (like TIDY). TIDY is not good enough with PHP tags (it removes a lot of php code). Do you have any...
2
by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post by:
How do I validate that there are xx number of bytes data after a given spot. Here is an example; 2008/04/24 19:16:50 ARES_EINDICATION 010.050.082.108 117.3.01 (1d61) RX 68 bytes 1D 61...
1
by: Miro | last post by:
I am having an annoying vs2008 pro ( vb ) issue. I have a custom class for a date cell for the datagridview column. I use the column in the datagrid on a cell. And every once in a while - the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.