Re: View Source

On Mar 17, 2009, at 02:38 , Doug Schepers wrote:
> Rob Sayre wrote (on 3/16/09 8:57 PM):
>> If you concatenate two HTML documents, you still get an HTML  
>> document.
>> If you concatenate two XML documents, you don't get an XML document.
>>
> I guess that depends on your definition of document.  This:
>
> <fooML>
>  <blah />
> </fooML>
>
> <barML>
>  <baz>
>    <fweep/>
>  </baz>
> </barML>
>
> Would have 2 document roots, I suppose, but could be contained in  
> the same file, and could be output that way.

Having two document roots means it's not an XML document. It won't  
parse. You can represent using some XML tools, notably XQuery, but  
this ain't XML anymore.

-- 
Robin Berjon - http://berjon.com/
     Feel like hiring me? Go to http://robineko.com/

Received on Tuesday, 17 March 2009 11:01:48 UTC