Here, in the first case everything is ok: XmlForClause.FirstTokenIndex points to the token representing FOR keyword, the first option points to PATH. But in the second case (FOR XML used in subquery) ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results