Extract as an html string the doctype tag and html open tag for parsing out doctypes and xmlns when altering html documents.