Recognise 'Element X not allowed as child of element Y in this context'