473,769 Members | 7,584 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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>&quot ;<a target="_b lank" 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& gt;), 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 2341
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>&quot ;<a target="_b lank" 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...@yaho o.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;&quo t;&lt;a target=&quot;_b lank&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...@yaho o.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...@yaho o.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...@yaho o.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...@yaho o.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
1856
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 RSS feed are created using a simple PHP script I wrote. His RSS feed is not validating, apparently because of the Word "smart quotes". This is a guess on my part. I need to find out for sure what character is causing the rss failure. How do I do...
1
3255
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 losing the Focus. How I can do that? Thanks. -- Marco Antonio Artus S.
2
1641
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 returning for the SelectSingleNode(), when trying to load a RSS 1.0 document, (which has a default namespace) why? if(feed.DocumentElement.LocalName.Equals("RDF") && feed.DocumentElement.NamespaceURI.Equals("http://www.w3.org/1999/02/22-rdf-s...
86
3654
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 1, 2004: VB.NET 47 C# 6 C++ 8 J# 0
8
2120
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 resources appropriate for the specified culture...". a little googling on this error made it simple to find the meaning, but since it's one of those awesome situations where the error message bears NO MEANINGFUL RELATION WHATSOEVER to the error's...
6
2111
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 to achieve this by using 'nowrap' for each links column and adding a middle column with 'width=100%'. However, this seems a bit fragile as it is dependent on the resolving the layout conflict. If the percentage width attribute has a lower weight...
5
1238
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 for your ideas.
26
25617
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 idea? Thanks you very much
2
1700
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 26 02 34 E8 AA 20 76 97 51 28 50 76 38 64 49 00 58 02 02 C7 88 01 C7 88 AA 50 76 38 64 49 20 76 97 51 28 D8 07 04 18 13 10 2F 00 00 10 0A 06 0A 06 06 0A 06 0A 06 06 06 06 06 06 06 06 73 74 69 9C 19 Where the line reads 68 bytes, I need to...
1
1774
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 form cannot be displayed because it thinks the 'DataGridViewDateColumn' doesnt exist. "Count not find type ' .. and its like the datagridviewdatacolumn.vb i have in my project is not compiled.
0
9589
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
10214
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
10048
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
8872
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
7410
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
6674
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
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.