[Home] [By Thread] [By Date] [Recent Entries]


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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member