xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Shacklette <jmsh...@home.com>
Subject Re: question about embedded data in XML
Date Fri, 03 Nov 2000 14:03:43 GMT
And this is I suppose the question, because what happens in the case that THAT
CDATA section itself includes XML, and to really get at it, what if that
enclosed XML itself includes multiple CDATA section.  Which CDATA closure will
operate?  Or am I missing something?

the point is this:  Will Xerces parsers correctly work with something like the
following (pardon if it's not exacly correct, but you get the idea...):

<foo><! [CDATA[<embeddedXML><! [CDATA[hello]]></embeddedXML>]]></foo>

Thanks for any and all help or suggestions.

> Mark Shacklette
> > We have a need to embed the following types of information in an XML
> document:
> >
> > strings that themselves contain XML (which we DON'T want parsed)
> > strings that themselves contain HTML (which we also don't want parsed)
> > encoded data that may be binary data encoded which could contain
> > (which we also don't want parsed).
> >
> > Does anyone have any recommendations on XML best practices to handle
> the above
> > data needs?
> >
> This is what CDATA sections are for.  Binary data should be base-64
> encoded, then put into a CDATA section.
> Tom Passin

View raw message