806807808809810811812813814815816
Document doc = new Document(root); DocType doctype = new DocType("root"); doc.setDocType(doctype); try { doctype.query("/"); fail("Allowed DocType as context node"); } catch (XPathException success) { assertNotNull(success.getMessage()); }
767768769770771772773774775776777