fix bug in doctype recognition: using wrong xml header attribute name