Deprecated. XML Maps are deprecated as of the WebLogic Platform 8.1 release. For new code, use XQuery maps. For more information, see Introduction to XQuery Maps.

# <xm:java-import> Tag

Specifies Java classes that should be imported to support variables in an XML map file.

## Syntax

    <xm:java-import
        class="fullyQualifiedClassName"
    />

## Attributes

class

The fully-qualified name of the class.

## Remarks

Use the <xm:java-import> tag in an XMLMAP file just as you would use the import directive in a JAVA or JWS file. As with the Java import directive in Java code, you use <xm:java-import> to specify classes and packages needed for type context in XML maps. For example, to use Date as a short type name in XML maps, first import the Date type as follows:

    <xm:java-import class="java.sql.Date"/>

You may use multiple <xm:java-import> tags, but all must occur immediately following the <xm:map-file> tag and before any XML maps.

Note: The xm prefix and its URI are declared implicitly in any JWS file. However, you must declare the namespace prefix and URI to use the prefix in XMLMAP files.

Related Topics

Creating Reusable XML Maps