OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] CDATA strangeness

[ Lists Home | Date Index | Thread Index ]

This comes from an HTML-only site. They don't claim it's XML, but we're
trying to load it in as an XML tree. The problem is when you pass the
snippet through Tidy and Xerces-C, it barfs royally, saying there's a
missing CDATA where it sees the '<![if' string.

Very strange. I thought I'd pose it out here to see if anyone else had seen
similar things, or if I had misread the spec. So far, I've heard 3-4
conflicting opinions on whether this is legal XML or not.

S'ok. Looks like we're going to tweak tidy and/or Xalan-C. We can't really
have breakage on stuff like this and asking the site to change is like
asking an elephant to quit hogging the dance floor.

Others using the Tidy/Xalan-C combo might want to keep an eye out for it.

Best,
Ramin

>
> 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.
> --
>





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS