In this chapter, you've seen how to publish a virtual directory for XML data access, either using the Configure SQL XML Support In IIS MMC snap-in or by writing a script that uses the automation objects for virtual directory management.
You've also learned how to execute queries in a URL and retrieve the results over HTTP. Although this is a valid way to retrieve data in a test or development environment, in most production solutions, you need to create templates or schemas that encapsulate the data you want to publish.
In the next chapter, we'll examine how XML templates can be created and published using a virtual name.