# Viewing and Editing the Generated Code of Maps

A query (in the XQuery language) is generated when you create mapping links from Source elements and attributes to Target elements and attributes.

1. Open a query in the mapper pane. For instructions see General Steps to Open or Create a Query in the Mapper.
2. Select the Source View tab.

The generated query is displayed.

For a description of a generated query, see Understanding the Transformation of the Tutorial: Building Your First Data Transformation.

3. Edit the generated query (the XQuery code). (Optional)

The query is written in the XQuery language. To learn about the XQuery language supported with WebLogic Integration, see the XQuery 1.0: An XML Query Language Specification - W3C Working Draft 16 August 2002 available from the W3C web site at the following URL:

http://www.w3.org/TR/2002/WD-xquery-20020816/

The WebLogic XQuery engine which is invoked by the Transformation method conforms to the August 16, 2002 draft of the XQuery Specification.

Note: You can also edit the XQuery code for a link from the General Expression pane of the Target Expression tab. To learn more see Modifying Links Using the Target Expression Tab.