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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Greg C.

    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?
  • Martin Honnen

    #2
    Re: Annoying Problem Trying To Validate An XML Feed. Losing My Mind!Please Help!

    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

    Comment

    • Greg C.

      #3
      Re: Annoying Problem Trying To Validate An XML Feed. Losing My Mind!Please Help!

      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;&quot ;&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

      Comment

      • Martin Honnen

        #4
        Re: Annoying Problem Trying To Validate An XML Feed. Losing My Mind!Please Help!

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

        --

        Martin Honnen

        Comment

        • Greg C.

          #5
          Re: Annoying Problem Trying To Validate An XML Feed. Losing My Mind!Please Help!

          On Aug 11, 11:12 am, Martin Honnen <mahotr...@yaho o.dewrote:
          Greg C. wrote:>
          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.

          Comment

          • Greg C.

            #6
            Re: Annoying Problem Trying To Validate An XML Feed. Losing My Mind!Please Help!

            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:
            >
            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!

            Comment

            • Martin Honnen

              #7
              Re: Annoying Problem Trying To Validate An XML Feed. Losing My Mind!Please Help!

              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

              Comment

              • Greg C.

                #8
                Re: Annoying Problem Trying To Validate An XML Feed. Losing My Mind!Please Help!

                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

                Comment

                • usenet@tech-know-ware.com

                  #9
                  Re: Annoying Problem Trying To Validate An XML Feed. Losing My Mind!Please Help!

                  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

                  Comment

                  Working...