Expression of swap operation in semi-structured data with path reading matrix