You can use xpath constraints for this
You can set a datagrid to receive it's contents from a Microflow. In your retrieve you can set your xpath constraints. However, a datagrid based on a microflow cannot contain associated attributes in the grid.
Maybe you can solve this with a non-persistant entity, which you'll create / fill on demand?