--- title: "How Do I Add a Prefix for the Default Namespace to Run an Action?" slug: "add-a-prefix-for-the-default-namespace-to-run-an-action" description: "You cannot run an action in the XML Transformer for an XPath that has a reference to a default namespace (xmlns not followed by : something)." updated: 2024-06-18T09:32:41Z published: 2024-06-18T09:32:41Z canonical: "kb.lasernetgroup.com/add-a-prefix-for-the-default-namespace-to-run-an-action" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.lasernetgroup.com/llms.txt > Use this file to discover all available pages before exploring further. # How Do I Add a Prefix for the Default Namespace to Run an Action? You cannot run an action in the **XML Transformer** for an XPath that has a reference to a default namespace (**xmlns** not followed by **: something**). This is a standard issue if you need to XML transform the UBL XML format. Here is an example of a default namespace: ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1619428780827.png) In this example, we would like to create a delete action for the **cbc:CopyIndicator** document that contains a default namespace (**xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2**) on the root node **Invoice**. Since you cannot use an XPath in the **XML Transformer** Form to select the **Invoice** node directly, you must enter the **Namespaces** dialog: 1. Click **XML** in the Toolbar. Select **Namespaces** to assign a prefix for the default namespace. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-142GIIOA.png) 1. In this example, we can assign a prefix for **urn:oasis:names:specification:ubl:schema:xsd:Invoice-2** with the name **def**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-DEJGJNNF.png) 1. After assigning a prefix for the default namespace you can add the delete action using the newly created prefix for the **Invoice** node. > [!NOTE] > Note > > Type in the prefix (**def:**) yourself. Then the delete action will work.