Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: DTD content to represent

From: raga <rsasanka@-----.--->
To: 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.




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent