W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2005

XML Schema: Forse use of CDATA and check for CDATA

From: Juergen Birkle <jb@moctec.com>
Date: 12 Apr 2005 18:49:55 -0600
Message-ID: <259235682.20050223124327@moctec.com>
To: www-xml-schema-comments@w3.org





Hello,

at the moment it is not possible to distinguish with XML Schema
between:

<book>
<title><![CDATA[A Book Title]]></title>
</book>

and

<book>
<title>A Book Title</title>
</book>


There is no way to force a user/system to use CDATA Tags to ensure a
proper transport of critical text, especially with "&" characters or
HTML code (e.g. <p>) in it.

I think it schould be possible to define a XML Schema that forces the
use of CDATA to prevent the parser of parsing complex texts or user
comments.


If you have any comments about my suggestion I would be very glad to
hear from you.

Best regards,
Juergen Birkle

_____________________________________________________________________

    Dipl. Inform. (FH) Juergen Birkle <jb@moctec.com>
_____________________________________________________________________
Received on Wednesday, 13 April 2005 00:50:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 October 2007 06:13:36 GMT