On 3/21/08, Federico Builes <federico.builes / gmail.com> wrote:
>  To add a bit more, I _think_ this condition will fail (kind_of without "?"
>  unless it's defined like that somewhere else) but it'll never be met:

To correct myself, it'll indeed fail with this piece of code:

    d = REXML::Document.new("<root/>")
    d.add REXML::DocType.new("foo")
    d.add REXML::DocType.new("bar")

According to the doc:

/ruby_1_9/lib/rexml/document.rb:73
        # ...  If there is a child and it is an DocType, then replace it.

-- 
Federico