<xm:use> Tag

Specifies a function or XML map to invoke for processing XML.

# Syntax

    <xm:use
        call="fileName([dataType ]elementValueVariable)"
    />

# Attributes

call

A call to an XML map or script function that is external to the service source code.

# Remarks

Use the <xm:use> tag when you have an XML map in a map file or ECMAScript functions in a JSX file and you want to invoke the map or script from within your service source code. The value of the call attribute specifies the map or function name, along with parameters to pass to the map or function. The names of parameters in parenthesis must match the names of items in the Java declaration that you are mapping.

fileName can refer to one of the following three types of files:

- An XML map contained in a file with an .xmlmap extension.

- An ECMAScript file with a .jsx extension.

Using XML programming extensions available with WebLogic Server, you can manipulate XML with ECMAScript. Note that the .jsx file must contain two functions: mymapToXML and mymapFromXML.

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. You may change the prefix by declaring another prefix.

Related Topics

Creating Reusable XML Maps

Handling XML with ECMAScript Extensions