Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Microsoft Office Word
Search
Search
 
Check for updates: (c) Microsoft
Office downloads
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
Insert XML data
 

Note  XML features, except for saving documents as XML with the Word XML schema, are available only in Microsoft Office Professional Edition 2003 and stand-alone Microsoft Office Word 2003.

You can insert data from an existing Extensible Markup Language (XML) (Extensible Markup Language (XML): A condensed form of Standard Generalized Markup Language (SGML) that enables developers to create customized tags that offer flexibility in organizing and presenting information.) file into your Microsoft Word document. Do one of the following:

ShowInsert data by typing the file name or URL of an XML file

  1. Place the insertion point where you want to insert the data.
  2. On the Insert menu, click Field, and in the Field names box, click IncludeText.
  3. In the Filename or URL box, type the name of the file, including its system path or URL.
  4. Select the Namespace mappings check box, and type a namespace in the format xmlns:variable="namespace". For example, xmlns:a="resume-schema".
  5. If you want to insert only a fragment of data rather than the whole file, select the XPath expression check box, and then type the XPath (XML Path Language (XPath): A language used to address parts of an XML document. XPath also provides basic facilities for manipulation of strings, numbers, and Booleans.) expression in the box provided. For example, a:Resume/a:Name specifies the Name element in the root element Resume.
  6. If you want to use an Extensible Stylesheet Language Transformation (XSLT) (XSL Transformation (XSLT): A file that is used to transform XML documents into other types of documents, such as HTML or XML. It is designed for use as part of XSL.) to format the data, select the XSL Transformation check box, and type the name of the file, including its system path or URL.
  7. Click OK.

ShowInsert data by browsing to an XML file

  1. Place the insertion point where you want to insert the file.
  2. On the Insert menu, click Insert File.
  3. In the Files of type box, click XML Files.
  4. Browse to the folder where the file is stored, and then click the file.
  5. Click Insert.
advertisement