Tag sentences with XML-specified logic.