But a parser will not do this a parser MUST report an error and abortat that point if it finds an element there it's the spec. The parser must error, so something else must detect the end of the root and then find the next document, basically you need to rewrite a second non-conformantparser to do that in front of the real parser.
In other words, you need a framing layer that happens *below* the XML layer. Lots of those kinds of things around, multipart MIME, DIME, etc. You can probably re-use something rather than inventing your own.
/r$ -- Rich Salz, Chief Security Architect DataPower Technology http://www.datapower.com XS40 XML Security Gateway http://www.datapower.com/products/xs40.html