Re: [xml-dev] CDATA strangeness

From
Elliotte Rusty Harold <>
To
Ramin Firoozye <>,
Date
2002-08-05T21:55:04Z
ID
<p04330100b974a45dfc60@[192.168.254.4]>
Thread
Re: [xml-dev] CDATA strangeness
At 2:45 PM -0700 8/5/02, Ramin Firoozye wrote:

>There's a fairly well-known web-site that returns:
>
><!--[if IE]><script language=javascript>ie5=1;</script><![endif]-->
><![if !IE]><script language=javascript>ie5=0;</script><![endif]>
>...

This is not well-formed XML, not even close. The problem is the <! 
outside the comment. If the site claims this is XML, then the site is 
wrong. However, possibly the site is only serving HTML, not XML or 
XHTML.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold |  | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          XML in a  Nutshell, 2nd Edition (O'Reilly, 2002)          |
|              http://www.cafeconleche.org/books/xian2/              |
|  http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+