RE: [xml-dev] Re: Encapsulating an XML document within an XML element

From
Michael Kay <>
To
'Brian Candler' <>,
Date
2004-07-11T12:41:31Z
ID
<20040711124142.MUIZ5354.mta06-svc.ntlworld.com@Turtle>
Thread
RE: [xml-dev] Re: Encapsulating an XML document within an XML element
> Actually, that does suggest a reasonable option:
> 
> <docset>
>   <document><![CDATA[<?xml version="1.0"?>
>     <!DOCTYPE example1 [ <!ELEMENT one (#PCDATA)> ]>
> ]]>
>     <one>
>     ..</one>
>   </document>

It's certainly a possible approach, and one that many people use, but it's
very poorly supported by tools such as XSLT and XQuery.

Michael Kay