enable the parser to validate DOMDocuments as well as DOMElements