Mapping between XML files

You can use the XML mapping editor to map one or more source XML documents to a single target XML document. The mapping tool automates XSL code generation and produces a transformation document based on the mapping information you provide. You can deploy a transformation document to combine and transform any set of XML documents conforming to the original set of source files.

Before you begin

About this task

The following instructions apply to the Resource perspective, but they will also work in many other perspectives.

To map your XML files, complete the following steps:

Procedure

  1. Create a project (File > New > Project > General > Project) and a folder (File > New > Folder) to hold your XML, XSD, DTD, and generated files.
  2. Select the folder and create a new XML mapping (File > New > Other > XML > XML Mapping). If you cannot see the XML option, select the Show All Wizards check box.
  3. Specify or import your source files and target file, then identify the root element for any of the DTD or XSD files that you specified.
  4. In the XML mapping editor, map the source and target files by mapping nodes, defining functions, and grouping elements.
  5. Save your mapping.

Results

What to do next


Feedback