- Place the insertion point where you want to insert the data.
- On the Insert menu, click Field, and in the Field names box, click IncludeText.
- In the Filename or URL box, type the name of the file, including its system path or URL.
- Select the Namespace mappings check box, and type a namespace in the format xmlns:variable="namespace". For example, xmlns:a="resume-schema".
- 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 expression in the box provided. For example, a:Resume/a:Name specifies the Name element in the root element Resume.
- If you want to use an Extensible Stylesheet Language Transformation (XSLT) to format the data, select the XSL Transformation check box, and type the name of the file, including its system path or URL.
- Click OK.
Insert data by browsing to an XML file
- Place the insertion point where you want to insert the file.
- On the Insert menu, click Insert File.
- In the Files of type box, click XML Files.
- Browse to the folder where the file is stored, and then click the file.
- Click Insert.