Working through the components of building XML for the Query Schema