On Sunday 18 February 2001 10:45, Werner Trobin wrote: > > And in the document description file "documentinfo.xml" > > --------------------------------- > > ... > > > > > > > > > > .. > > > > 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, 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