The following sections show the ways you can create and save an XML document object. The specific technique you use will depend on the application and your coding style.