XmlMapping

Overview

XmlMapping is a class in Aspose.Words FOSS for .NET.

Specifies the information that is used to establish a mapping between the parent structured document tag and an XML element stored within a custom XML data part in the document.

This class provides 2 methods for working with XmlMapping objects in .NET programs. Available methods include: Delete, SetMapping. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: CustomXmlPart, IsMapped, PrefixMappings, StoreItemId, XPath.

Properties

NameTypeAccessDescription
PrefixMappingsstringReadReturns XML namespace prefix mappings to evaluate the XPath.
XPathstringReadReturns the XPath expression, which is evaluated to find the custom XML node that is mapped to the parent structured document tag.
CustomXmlPartCustomXmlPartReadReturns the custom XML data part to which the parent structured document tag is mapped.
IsMappedboolReadReturns true if the parent structured document tag is successfully mapped to XML data.
StoreItemIdstringReadSpecifies the custom XML data identifier for the custom XML data part which shall be used to evaluate the XPath expression.

Methods

SignatureDescription
SetMapping(customXmlPart: CustomXmlPart, xPath: string, prefixMapping: string)Sets a mapping between the parent structured document tag and an XML node of a custom XML data part.
Delete()Deletes mapping of the parent structured document to XML data.

See Also