br closing element name expected

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Grams F.

    br closing element name expected

    It seems a <br> code in my XML-file is not accepted.
    This XML file is created using Movablestyle/Thingamablog

    Can anyone please analyse this HTML/XML-source, and tell me what is wrong?


    +++++++++++++++ +++++++++++++


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <title>:: mydomainremoved againstspam :: : 01/02/2005 - 01/02/2005</title>
    <link rel="stylesheet "
    href="http://www.mydomainrem ovedagainstspam .com/blog//styles-site.css"
    type="text/css" />
    </head>

    <body>
    <div id="banner">
    <h1>01/02/2005 - 01/02/2005</h1>
    <span class="descript ion"></span>
    </div>

    <div id="content">
    <div class="blog">

    <!-- This section specifies the layout for each entry -->

    <h2 class="date">Su nday, January 02, 2005</h2>
    <div class="blogbody ">
    <a name="3"></a>

    <h3 class="title">H appy 2005</h3>

    Iedereen een heel gelukkig nieuwjaar!
    <div class="posted">
    Posted by <a
    href="mailto:bl og@mydomainremo vedagainstspam. com">mydomainre movedagainstspa m</a>
    at <a
    href="http://www.mydomainrem ovedagainstspam .com/blog/archives/01-02-2005_01-02-2005.xml#3"
    title="permanen t link">11:43.17</a><br>

    Categories: <br>
    </div>
    </div>



    <div class="blogbody ">
    <a name="2"></a>

    <h3 class="title">N ieuw weblog, welkom op ons weblog</h3>

    Hallo, en welkom op ons weblog mydomainremoved againstspam. Over een
    poosje zullen we veel gaan communiceren via dit weblog. We zullen regelmatig
    verhalen, ervaringen, foto's etc. posten, waarmee we iedereen op de hoogte
    zullen proberen te houden van ons leven in Australie.
    In de aanloop tot onze verhuizing gaan we hier ook vast wel wat info posten.
    Veel leesplezier!
    <div class="posted">
    Posted by <a
    href="mailto:bl og@mydomainremo vedagainstspam. com">mydomainre movedagainstspa m</a>
    at <a
    href="http://www.mydomainrem ovedagainstspam .com/blog/archives/01-02-2005_01-02-2005.xml#2"
    title="permanen t link">11:41.26</a><br>
    <i>Edited on: Sunday, January 02, 2005 18:30.26</i><br>
    Categories: <br>
    </div>
    </div>




    </div><!--end blog -->
    </div> <!-- end content -->

    <!-- sidebar begin -->
    <div id="links">

    <!-- This section lays out the calendar -->
    <div align="center" class="calendar ">

    <table border="0" cellspacing="3" cellpadding="0" summary="Monthl y
    calendar with links to each day's posts">
    <caption class="calendar head">January 2005</caption>
    <tr>
    <th abbr="Sunday" align="center"> <span
    class="calendar ">Sun</span></th>
    <th abbr="Monday" align="center"> <span
    class="calendar ">Mon</span></th>
    <th abbr="Tuesday" align="center"> <span
    class="calendar ">Tue</span></th>
    <th abbr="Wednesday " align="center"> <span
    class="calendar ">Wed</span></th>
    <th abbr="Thursday" align="center"> <span
    class="calendar ">Thu</span></th>
    <th abbr="Friday" align="center"> <span
    class="calendar ">Fri</span></th>
    <th abbr="Saturday" align="center"> <span
    class="calendar ">Sat</span></th>
    </tr>

    <tr><td align="center">
    <span class="calendar ">


    &nbsp;</span></td>
    <td align="center">
    <span class="calendar ">


    &nbsp;</span></td>
    <td align="center">
    <span class="calendar ">


    &nbsp;</span></td>
    <td align="center">
    <span class="calendar ">


    &nbsp;</span></td>
    <td align="center">
    <span class="calendar ">


    &nbsp;</span></td>
    <td align="center">
    <span class="calendar ">


    &nbsp;</span></td>
    <td align="center">
    <span class="calendar ">
    1

    </span></td>
    </tr>

    <tr><td align="center">
    <span class="calendar ">
    2

    </span></td>
    <td align="center">
    <span class="calendar ">
    3

    </span></td>
    <td align="center">
    <span class="calendar ">
    4

    </span></td>
    <td align="center">
    <span class="calendar ">
    5

    </span></td>
    <td align="center">
    <span class="calendar ">
    6

    </span></td>
    <td align="center">
    <span class="calendar ">
    7

    </span></td>
    <td align="center">
    <span class="calendar ">
    8

    </span></td>
    </tr>

    <tr><td align="center">
    <span class="calendar ">
    9

    </span></td>
    <td align="center">
    <span class="calendar ">
    10

    </span></td>
    <td align="center">
    <span class="calendar ">
    11

    </span></td>
    <td align="center">
    <span class="calendar ">
    12

    </span></td>
    <td align="center">
    <span class="calendar ">
    13

    </span></td>
    <td align="center">
    <span class="calendar ">
    14

    </span></td>
    <td align="center">
    <span class="calendar ">
    15

    </span></td>
    </tr>

    <tr><td align="center">
    <span class="calendar ">
    16

    </span></td>
    <td align="center">
    <span class="calendar ">
    17

    </span></td>
    <td align="center">
    <span class="calendar ">
    18

    </span></td>
    <td align="center">
    <span class="calendar ">
    19

    </span></td>
    <td align="center">
    <span class="calendar ">
    20

    </span></td>
    <td align="center">
    <span class="calendar ">
    21

    </span></td>
    <td align="center">
    <span class="calendar ">
    22

    </span></td>
    </tr>

    <tr><td align="center">
    <span class="calendar ">
    23

    </span></td>
    <td align="center">
    <span class="calendar ">
    24

    </span></td>
    <td align="center">
    <span class="calendar ">
    25

    </span></td>
    <td align="center">
    <span class="calendar ">
    26

    </span></td>
    <td align="center">
    <span class="calendar ">
    27

    </span></td>
    <td align="center">
    <span class="calendar ">
    28

    </span></td>
    <td align="center">
    <span class="calendar ">
    29

    </span></td>
    </tr>

    <tr><td align="center">
    <span class="calendar ">
    30

    </span></td>
    <td align="center">
    <span class="calendar ">
    31

    </span></td>
    <td align="center">
    <span class="calendar ">


    &nbsp;</span></td>
    <td align="center">
    <span class="calendar ">


    &nbsp;</span></td>
    <td align="center">
    <span class="calendar ">


    &nbsp;</span></td>
    <td align="center">
    <span class="calendar ">


    &nbsp;</span></td>
    <td align="center">
    <span class="calendar ">


    &nbsp;</span></td>
    </tr>

    </table>

    </div> <!-- end calendar -->

    <br />
    <div class="syndicat e">
    <a href="http://www.mydomainrem ovedagainstspam .com/blog/blog.html">Fron t
    Page</a><br />
    <a
    href="http://www.mydomainrem ovedagainstspam .com/blog/rss.xml">Syndic ate this
    site (XML)</a>
    </div>

    <!-- Archive links list -->
    <div class="sidetitl e">
    Archives
    </div>

    <div class="side">

    <a
    href="http://www.mydomainrem ovedagainstspam .com/blog/archives/01-02-2005_01-02-2005.xml">01/02/2005
    - 01/02/2005</a><br />

    <br />
    <a
    href="http://www.mydomainrem ovedagainstspam .com/blog/archives.html"> Archive
    Index</a>
    </div>


    <!-- Category links list -->
    <div class="sidetitl e">
    Categories
    </div>

    <div class="side">

    </div>


    <div class="sidetitl e">
    Credits
    </div>
    <div class="side"><!--REQUIRED LINK!!!! do not delete! -->
    <a href="http://www.movablestyl e.com/">Design by Movablestyle</a><br />
    </div>


    <div class="powered" >
    Powered by<br /><a
    href="http://thingamablog.so urceforge.net"> Thingamablog 1.0b2</a><br />
    </div>


    </div>
    <br clear="all" />
    </body>
    </html>


  • Bjoern Hoehrmann

    #2
    Re: br closing element name expected

    * Grams F. wrote in comp.text.xml:[color=blue]
    >It seems a <br> code in my XML-file is not accepted.[/color]

    In XML, all elements need to be explicitly closed and there are only two
    way of closing an element, either by using an end-tag like </p> or by
    using a special kind of start-tag, <p/>, which can be used if there is
    no content. In your document the <br> elements are not closed, you have
    just "<br>" without a corresponding "</br>". Change these to "<br></br>"
    or (probably better), "<br />".
    --
    Björn Höhrmann · mailto:bjoern@h oehrmann.de · http://bjoern.hoehrmann.de
    Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
    68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/

    Comment

    • Grams F.

      #3
      Re: br closing element name expected

      Bjoern Hoehrmann wrote:[color=blue]
      > * Grams F. wrote in comp.text.xml:[color=green]
      >> It seems a <br> code in my XML-file is not accepted.[/color]
      >
      > In XML, all elements need to be explicitly closed and there are only
      > two way of closing an element, either by using an end-tag like </p>
      > or by using a special kind of start-tag, <p/>, which can be used if
      > there is no content. In your document the <br> elements are not
      > closed, you have just "<br>" without a corresponding "</br>". Change
      > these to "<br></br>" or (probably better), "<br />".[/color]

      Cool, I really did not know this.
      I will try it tomorrow immediately.
      Thanks!

      Grams



      Comment

      • Peter Flynn

        #4
        Re: br closing element name expected

        Grams F. wrote:
        [color=blue]
        > Bjoern Hoehrmann wrote:[color=green]
        >> * Grams F. wrote in comp.text.xml:[color=darkred]
        >>> It seems a <br> code in my XML-file is not accepted.[/color]
        >>
        >> In XML, all elements need to be explicitly closed and there are only
        >> two way of closing an element, either by using an end-tag like </p>
        >> or by using a special kind of start-tag, <p/>, which can be used if
        >> there is no content. In your document the <br> elements are not
        >> closed, you have just "<br>" without a corresponding "</br>". Change
        >> these to "<br></br>" or (probably better), "<br />".[/color]
        >
        > Cool, I really did not know this.
        > I will try it tomorrow immediately.[/color]

        When in doubt, read the FAQ.
        http://www.ucc.ie/xml#wf, "Rules for well-formedness", 3rd bullet

        ///Peter
        --
        "The cat in the box is both a wave and a particle"
        -- Terry Pratchett, introducing quantum physics in _The Authentic Cat_

        Comment

        • Brian Staff

          #5
          Re: br closing element name expected

          use <br /> instead

          Brian

          Comment

          Working...