|InfoPath Developer Reference|
Version Added: InfoPath 2003
expression An expression that returns a Application object.
After you have set a reference to the XDocuments collection, you can use its properties to access each of the XDocument objects that it contains.
Security Level 0: Can be accessed without restrictions.
In the following example, the XDocuments property is used to access the Count property of the XDocuments collection and display the value in a message box: