To add additional XML parts to the document, any of the following methods may be used:

Inserting an Existing XML File

If you already have an XML file that contains the markup which should be inserted, you can copy it into the document as follows:

Via the Drop-down Menu

To insert it via the task pane:
  1. Click on the drop-down menu at the top of the Xml Mapping task pane
  2. Click Add New Part... (the last item in the list)
  3. In the Add New Part dialog box, choose the first option ("Copy the contents of an existing XML file to create the part")
  4. Click Next
  5. Enter the location of the existing XML file in the text box
  6. Click Finish
At this point, a copy of the XML file is added to the document and automatically shown in the task pane.

Via Drag/Drop

You can also copy it into the document via drag and drop:
  1. Locate the XML file
  2. Drag it on top of the tree view control in the task pane (highlighted in red below)
  3. Drop it
dropTarget.png
At this point, a copy of the XML file is added to the document and automatically shown in the task pane.

Creating a new XML Part from Scratch

To create a brand new XML part:
  1. Click on the drop-down menu at the top of the Xml Mapping task pane
  2. Click Add New Part... (the last item in the list)
  3. In the Add New Part dialog box, choose the second option ("Type pr paste the contents of the part")
  4. Click Next
  5. Type the XML for the part into the text box
  6. Click Finish
At this point, the XML you typed is added to the document and automatically shown in the task pane. If the XML contains errors, you will need to correct it before it is inserted.

Last edited Sep 13, 2011 at 1:13 AM by tristand, version 2

Comments

No comments yet.