> > I think I got all the parentage checks and manipulations correct, but > > it's gotten extremely complicated and dispersed. > > FYI, from a quick scan I think the changes will now allow a DocType to > be added *after* the root element. > > Brad Good catch. I submitted a fix. -jh-