Microsoft Office 2003 Editions: Overview of Developer TechnologiesSeptember 2004
InfoPath enforces the validity of the captured information according to the schema. The result of information captured in InfoPath is an XML file in the format of the custom XML schema; InfoPath has no special file format. You can only use one schema as the basis for a form.
When designing a form from a custom schema, InfoPath provides suggested controls based on the data type specified by the schema, e.g. a single line text control is suggested for the XSD string type; a date control is suggested for the XSD date type.
When InfoPath forms save captured information as XML, it includes a PI (XML processing instruction) at the top of the document that identifies the corresponding template solution so that the document is always connected with that specific form template. In the same way, you can open any XML of that namespace with that InfoPath form template.
For more information, see .
Microsoft Office Access 2003. Access uses custom XML schema primarily for importing and exporting data for greater ease of data exchange with other systems. You can also apply XSL transforms during an import or export, providing you with more flexibility over the shapes of XML that you can use.
When importing XML data, if the XML refers to an accompanying schema, Access recognizes data types based on the schema definition. However, importing XML data into Access does not require a schema. If there is no schema reference, Access infers a structure from the incoming data.
Access also offers more flexibility than previous versions of Access for exporting data as XML. You can limit an export to only data selected with respect to current Filter and Sort views. Access can also export related tables as XML. This way, you can include hierarchical data in one standard XML file for consumption in other systems.
Figure 3. Import XML options UI in Access 2003
All support for importing and exporting XML is available through UI objects as well as programmatically. Figure 3 shows the available dialog to import XML. To enable this, there are enhancements to the XML object model, including a new TransformXML method and additional parameters for the ExportXML method.
Suggested Next Steps
Learn more about the XML schema standard:
Follow a basic walk-through using custom XML with Word:
Read a technical article on the new Word XML features:
Download the Word XML Toolbox to help with Word XML development:
© 2006 Microsoft Corporation. All rights reserved. Page 11 By using or providing feedback on these materials, you agree to the attached license agreement.
To comment on this paper or request more documentation on these developer features, contact us at . We look forward to hearing from you.