[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    Re: killu and dtd: typo and missing tag description
From:       Thomas Zander <zander () planescape ! com>
Date:       2001-02-19 18:27:18
[Download RAW message or body]

On Sunday 18 February 2001 10:45, Werner Trobin wrote:

> > And in the document description file "documentinfo.xml"
> > ---------------------------------
> > ...
> > <about>
> >   <abstract><![CDATA[]]></abstract>
> >   <title></title>
> >  </about>
> > ..
> >
> > The CDATA has only to be in the dtd description files not in
> > a realy xml file. Am I right ? I know that in this case it is
> > only a comment <! ...>. But shouldn't  it be removed ???

Correct.

>
> No. This is legal XML, AFAIK. You can store "plain text" this
> way and you don't have to encode the entities (<, >, &, ").

It is not, <!-- something --> would be.

But the first question was what the text CDATA was doing there. And basically 
I think that Enno is right, it is not nice to put it there, even if meant as 
a comment..

In a DTD the CDATA is meant a character data. And everything can be placed 
there, but not the characters < & (and sometimes the > ), they have to be 
encoded or they will be interpreted as XML tag-characters.

Basically the above XML-code is incorrect and the parser would have every 
right to completely ignore the whole file since it is not a valid XML file.

-- 
Thomas

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic