Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: DTD content to represent >Thread Next - Re: DTD content to represent Re: DTD content to representTo: NULL Date: 8/2/2007 9:29:00 AM On Aug 2, 2:15 pm, Bjoern Hoehrmann <bjo...@hoehrmann.de> wrote: > * raga wrote in comp.text.xml: > > >When I have an element as > ><book title =3D"xyz" author =3D "abc" > > ><desc> > ><![CDATA[Good book]]> > ></desc> > ></book > > >how exactly the DTD should look like.? > > It is neither good practise nor possible to encode a requirement to use > CDATA sections for some element in the DTD. You have to use #PCDATA and > let users decide whether to use CDATA sections. > -- > Bj=F6rn H=F6hrmann =B7 mailto:bjo...@hoehrmann.de =B7http://bjoern.hoehrm= ann.de > Weinh. Str. 22 =B7 Telefon: +49(0)621/4309674 =B7http://www.bjoernsworld.= de > 68309 Mannheim =B7 PGP Pub. KeyID: 0xA4357E78 =B7http://www.websitedev.de/ Thanks for the reply. at the same time,in the DTD for this element (desc) i was also wondering why it wont allow me to use (#CDATA) and says invalid element declaration and when i use (CDATA) it says Document structure doenst match DTD. and what exactly is the difference? thanks again for your earlier reply. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
