This XQuery works... for $b in input() /BusinessObject[AccessID='SOFTTOP' and Type='User' ]/Current/ObjectState return $b This one does not work in 4.1.4.1, but it DOES work in 4.1.1.2 (note that the "/User" element falls into the "Any" element level of the Schema... for $b in input() /BusinessObject[AccessID='SOFTTOP' and Type='User' ]/Current/ObjectState/User return $b