This chapter has provided an overview of InfoPath scripts and how they can be used to query and modify XML documents. In addition to these features, there are a number of other InfoPath capabilities that were not covered in detail in this chapter. They include:
Modifying the user interface. Using a script, it is possible to add a custom task pane, toolbar or menu.
Integration with external code. Scripts can access any external COM component.
Accessing external data. Scripts can be used to access data from files, databases or Web services. This is covered in detail in the next chapter.
A set of examples is provided with InfoPath. They can be found in the directory in which Microsoft Office is installed, in the OFFICE11\SAMPLES\INFOPATH subdirectory. Now that you have read this chapter, you will be in a good position to understand these examples and reuse parts of them in your own forms.