NXP-15962 enforce query by checking doctype