On 5/19/08 8:22 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

>> processing instruction outside the root element (at the very end of the
> document) 
> 
> By XML's grammar rules, nothing meaningful may follow the root element.
> That includes PIs.  Any tool which is processing that PI is actually
> behaving incorrectly.

That is not true. The definition of document in the XML 1.1 spec is:

       (  prolog  element  Misc*  )

Where "Misc" is:

     Comment | PI | S

So PIs and comments are absolutely allowed to follow the root element, just
as they are allowed to precede it.

This document is fine:

<?xml version="1.0"?>
<?mypi foo?>
<x/>
<?mypi bar?>

Cheers,

Eliot

-- 
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 610.631.6770
www.reallysi.com
www.rsuitecms.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to