Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

How to: Add XMLNode Controls to Word Documents

Important   The information set out in this topic regarding Microsoft Word is presented exclusively for the benefit and use of individuals and organizations who are located outside the United States and its territories or who are using, or developing programs that run on, Microsoft Word products that were licensed by Microsoft before January 2010, when Microsoft removed an implementation of particular functionality related to custom XML from Microsoft Word. This information regarding Microsoft Word may not be read or used by individuals or organizations in the United States or its territories who are using, or developing programs that run on, Microsoft Word products that were licensed by Microsoft after January 10, 2010; those products will not behave the same as products licensed before that date or purchased and licensed for use outside the United States.

Note Required applications

The features in this topic are available only if you have the required applications installed.

For more information, see Features Available by Product Combination.

  • One of these development environments:

    VSTO 2005

    -or-

    Visual Studio Team System

  • Microsoft Office 2003

When you map a non-repeating XML schema element to a Microsoft Office Word 2003 document, Microsoft Visual Studio 2005 Tools for the Microsoft Office System automatically adds an XMLNode control to your document. For information on mapping repeating XML schema elements, see How to: Add XMLNodes Controls to Word Documents.

NoteNote

The XMLNode control is not available from the Toolbox or the Data Sources window, nor can it be created programmatically.

NoteNote

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To add an XMLNode control to a document

  1. From the Tools menu, point to Microsoft Office Word Commands, and select Templates and Add-Ins.

    The Templates and Add-ins dialog box appears.

    NoteNote

    If Microsoft Office Word Commands is not available in the Tools menu, click the document to give it focus.

  2. In the XML Schema tab, click Add Schema.

    The Add Schema dialog box appears.

  3. Select an XML schema that contains non-repeating schema elements from the Add Schema dialog box and click Open.

    The Schema Settings dialog box appears.

  4. In the Schema Settings dialog box, click OK.

    The schema is added to the Add Schema dialog box.

  5. In the Add Schema dialog box, click OK.

  6. The XML Structure task pane opens.

  7. Click the non-repeating schema element on the XML Structure task pane to add it to the document.

    An XMLNode control is created and added to the project.

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.