# POXQueryControl.jcx Sample

This topic inludes the source code for the POXQueryControl.jcx Sample.

## Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/ExtensionDevKit/ControlDevKit/ControlTest/featuresTests/

## Sample Source Code

`01 package featuresTests; 02 03 import com.bea.control.*; 04 import com.bea.xml.XmlCursor; 05 import jcxCreate.XQuery; 06 07 public interface POXQueryControl extends XQuery, com.bea.control.ControlExtension 08 { 09 10 /* Replace the following method with your own. Be sure 11 * that your method returns an XmlCursor and that its 12 * parameter is a File object to contain the XML against 13 * which to execute the XQuery expression. 14 */ 15 16 /** 17 * @jc:query expression="$this/purchase-order/line-item[price <= 20.00]" 18 */ 19 XmlCursor selectLineItem(String filePath); 20 21 } 22`