set_mapping method

set_mapping(custom_xml_part, x_path, prefix_mapping)

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

def set_mapping(self, custom_xml_part: aspose.words.markup.CustomXmlPart, x_path: str, prefix_mapping: str):
    ...
ParameterTypeDescription
custom_xml_partCustomXmlPartA custom XML data part to map to.
x_pathstrAn XPath expression to find the XML node.
prefix_mappingstrXML 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