[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xml-dev] Embed an XML document in another XML document
Jean-Noël Colin wrote:
> I would like to create a XML Schema that would define the structure of an
> XML document that contains XML document
>
> Typically, something like
>
> <?xml version="1.0" encoding="UTF-8"?>
> <message ... >
> <messageid>123456</messageid>
> <body>
> <?xml version="1.0" encoding="UTF-8"?>
> <filter ... >
This is malformed XML document because of second XML declaration. You
can only embed a XML document that has neither XML declaration nor DOCTYPE.
--
Oleg Tkachenko
http://blog.tkachenko.com
Multiconn Technologies, Israel
|