Helper class that checks that the context node is a document node.
void checkTargetNode(const QXmlNodeModelIndex &node, const DynamicContext::Ptr &context, const ReportContext::ErrorCode) const
Checks that the root node of node is a document node, and otherwise issues an error.