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
| Name | Type | Access | Description |
|---|---|---|---|
PrefixMappings | string | Read | Returns XML namespace prefix mappings to evaluate the XPath. |
XPath | string | Read | Returns the XPath expression, which is evaluated to find the custom XML node that is mapped to the parent structured document tag. |
CustomXmlPart | CustomXmlPart | Read | Returns the custom XML data part to which the parent structured document tag is mapped. |
IsMapped | bool | Read | Returns true if the parent structured document tag is successfully mapped to XML data. |
StoreItemId | string | Read | Specifies the custom XML data identifier for the custom XML data part which shall be used to evaluate the XPath expression. |
Methods
| Signature | Description |
|---|---|
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. |