On Mar 21, 2008, at 17:35, Federico Builes wrote:
> I think the following behaviors of REXML can be considered as bugs  
> but I
> wanted a small confirmation before implementing some patches:
>
> 1) XML Documents accept more than 1 XMLDecl (which is not allowed by
> http://www.w3.org/TR/xml/#NT-prolog)

As the REXML web page says,

> One thing to be aware of is that REXML is not (yet) a validating  
> parser. This means that some invalid namespace declarations are not  
> caught.


Seems to me that accepting more than 1 XML declaration is entirely  
acceptable, for a parser which states that it is non-validating.


mathew