
## set_mapping(custom_xml_part, x_path, prefix_mapping) {#customxmlpart_str_str}

Sets a mapping between the parent structured document tag and an XML node of a custom XML data part.


```python
def set_mapping(self, custom_xml_part: aspose.words.markup.CustomXmlPart, x_path: str, prefix_mapping: str):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| custom_xml_part | [CustomXmlPart](../../customxmlpart/) | A custom XML data part to map to. |
| x_path | str | An XPath expression to find the XML node. |
| prefix_mapping | str | XML namespace prefix mappings to evaluate the XPath. |

### Returns

A flag indicating whether the parent structured document tag is successfully mapped to
the XML node.


### See Also

* module [aspose.words.markup](../../)
* class [XmlMapping](../)

