XML validation hooks