Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > br closing element name expected

Reply
Thread Tools

br closing element name expected

 
 
Grams F.
Guest
Posts: n/a
 
      01-02-2005
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.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

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

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

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

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

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

<h3 class="title">Happy 2005</h3>

Iedereen een heel gelukkig nieuwjaar!
<div class="posted">
Posted by <a
href="private.php?do=newpm&u="> mydomainremovedagainstspam</a>
at <a
href="http://www.mydomainremovedagainstspam.com/blog/archives/01-02-2005_01-02-2005.xml#3"
title="permanent link">11:43.17</a><br>

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



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

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

Hallo, en welkom op ons weblog mydomainremovedagainstspam. 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="private.php?do=newpm&u="> mydomainremovedagainstspam</a>
at <a
href="http://www.mydomainremovedagainstspam.com/blog/archives/01-02-2005_01-02-2005.xml#2"
title="permanent 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="Monthly
calendar with links to each day's posts">
<caption class="calendarhead">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="syndicate">
<a href="http://www.mydomainremovedagainstspam.com/blog/blog.html">Front
Page</a><br />
<a
href="http://www.mydomainremovedagainstspam.com/blog/rss.xml">Syndicate this
site (XML)</a>
</div>

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

<div class="side">

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

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


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

<div class="side">

</div>


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


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


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


 
Reply With Quote
 
 
 
 
Bjoern Hoehrmann
Guest
Posts: n/a
 
      01-02-2005
* Grams F. wrote in comp.text.xml:
>It seems a <br> code in my XML-file is not accepted.


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 · private.php?do=newpm&u= · 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/
 
Reply With Quote
 
 
 
 
Grams F.
Guest
Posts: n/a
 
      01-02-2005
Bjoern Hoehrmann wrote:
> * Grams F. wrote in comp.text.xml:
>> It seems a <br> code in my XML-file is not accepted.

>
> 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 />".


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

Grams



 
Reply With Quote
 
Peter Flynn
Guest
Posts: n/a
 
      01-03-2005
Grams F. wrote:

> Bjoern Hoehrmann wrote:
>> * Grams F. wrote in comp.text.xml:
>>> It seems a <br> code in my XML-file is not accepted.

>>
>> 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 />".

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


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_
 
Reply With Quote
 
Brian Staff
Guest
Posts: n/a
 
      01-03-2005
use <br /> instead

Brian

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to Update/insert an xml element's text----> (<element>text</element>) HANM XML 2 01-29-2008 03:31 PM
Closing popup window when closing parent window? =?Utf-8?B?Vk1J?= ASP .Net 3 02-15-2007 08:29 AM
how can i retrieve the name of form when one of the element name in this form is 'name' ashok.dhananjeyan@gmail.com Javascript 6 11-24-2006 02:54 AM
Closing the doors 15 minutes before closing. doofus Computer Support 12 06-11-2005 08:20 AM
Closing child window WITHOUT closing parent thomas Javascript 0 10-23-2003 04:10 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57