Skip Headers
Oracle® TopLink Developer's Guide
10g Release 3 (10.1.3.1.0)

Part Number B28218-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

63 Configuring an XML Mapping

This chapter describes how to configure an XML mapping.

Table 63-1 lists the types of XML mappings that you can configure and provides a cross-reference to the type-specific chapter that lists the configurable options supported by that type.

Table 63-1 Configuring XML Mappings

If you are creating... See Also...

XML Direct Mapping


Chapter 64, "Configuring an XML Direct Mapping"


XML Composite Direct Collection Mapping


Chapter 65, "Configuring an XML Composite Direct Collection Mapping"


XML Composite Object Mapping


Chapter 66, "Configuring an XML Composite Object Mapping"


XML Composite Collection Mapping


Chapter 67, "Configuring an XML Composite Collection Mapping"


XML Any Object Mapping


Chapter 68, "Configuring an XML Any Object Mapping"


XML Any Collection Mapping


Chapter 69, "Configuring an XML Any Collection Mapping"


XML Transformation Mapping


Chapter 70, "Configuring an XML Transformation Mapping"



Table 63-2 lists the configurable options shared by two or more XML mapping types.

For more information, see the following:

Configuring Common XML Mapping Options

Table 63-2 lists the configurable options shared by two or more XML mapping types. In addition to the configurable options described here, you must also configure the options described for the specific XML Mapping Types, as shown in Table 63-1.

Configuring Reference Descriptor

For XML attributes that reference other descriptors (instead of a schema element), you must select a specific reference descriptor.

Table 63-3 summarizes which XML mappings support reference descriptor configuration.

Using TopLink Workbench

To specify a reference descriptor for an XML mapping that references another descriptor (instead of a schema element), use this procedure.

  1. Select the mapped attribute in the Navigator. Its properties appear in the Editor.

  2. Click the General tab. The General tab appears.

    Figure 63-1 General Tab, Reference Descriptor Field

    Description of Figure 63-1 follows
    Description of "Figure 63-1 General Tab, Reference Descriptor Field"

If this XML attribute refers to another descriptor (instead of a schema element), use the Reference Descriptor field to select a descriptor in the project.

Configuring Maps to Wildcard

This attribute applies only to TopLink Workbench. Use this option to solve "No XPath specified" problems (see "Using the Problems Window") for an XML mapping that does not need an XPath (see "Configuring XPath") for it maps to a wildcard.

If the XML mapping is owned by an anyType descriptor (see "Configuring for Complex Type of anyType"), it cannot map to a wildcard, and you must specify an XPath.

Table 63-4 summarizes which XML mappings support maps to wildcard configuration.

Using TopLink Workbench

To specify a map a schema element using the xs:any declaration, use this procedure.

  1. Select the mapped attribute in the Navigator. Its properties appear in the Editor.

  2. Figure 63-2 Mapping Tab, Maps to Wildcard Option

    Description of Figure 63-2 follows
    Description of "Figure 63-2 Mapping Tab, Maps to Wildcard Option"

If the XML mapping is not owned by an anyType descriptor (see "Configuring for Complex Type of anyType") and maps to a wildcard, then you do not need to specify an XPath (see "Configuring XPath"). Select the Maps to Wildcard (uses "any" tag) option to clear the missing XPath neediness message.

If the XML mapping is owned by an anyType descriptor, it cannot map to a wildcard and you must specify an XPath. Deselect the Maps to Wildcard (Uses "any" tag) option and ensure that you specify an XPath.