Accessing form data

Microsoft Office InfoPath

Show All Show All

Accessing form data

When you want to extend the functionality of a Microsoft Office InfoPath 2003 form, it is often necessary to programmatically access information about the form's underlying XML document, access the data that the XML document contains, or perform some action on the XML document. The InfoPath object model supports access and manipulation of a form's underlying XML document through the use of the XDocument object in association with the XDocuments collection.

The XDocument object is one of the most useful objects within the InfoPath object model because it provides a variety of properties, methods, and events that not only interact with a form's underlying XML document, but also perform many of the actions that are within the InfoPath user interface.

ShowOverview of the XDocuments collection

ShowOverview of the XDocument object

ShowUsing the XDocuments collection and the XDocument object