
Inserting XML
The template is now ready to apply formatting and set up
styles so that the user has an easier time working with the
resultant document. One of the most important features for
Word 2007 developers is the XML support for the Range and
Selection objects. As you saw in the chapters covering VBA,
these objects (Range and Selection) are two of the most fre-
quently used objects when working programmatically with a
Word document or template. The Word 2007 object model
allows you to create Range or Selection objects in the classi-
cal sense, but then also allows you to work with them as true
XML. Programmatically, the Word 2007 Range object sup ...