xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Kelly" <ke...@ad1440.net>
Subject Re: question about embedded data in XML
Date Fri, 03 Nov 2000 21:55:23 GMT
> This means that within XML, there is NO WAY WHATEVER
> to embed XML within an XML document, right?  What if
> the "embedded" XML were encoded, might that work?
> Any other ideas for workarounds?

How about setting the content type of the element to
contain embedded the XML as ANY ...

<!ELEMENT root (title, xml)>
<!ELEMENT title (#PCDATA)>

So a doc like this is valid:

  <title>My Embedded XML</title>

Alternatively, encode the embedded XML using a format
opaque to XML---say base-64, and store that as CDATA.
You could then embed the <?xml...?> processing
instruction, DOCTYPE declaration, schema declaration,
etc., too.


View raw message