Examples for using the XML Gateway API