XmlMapping
Overview
XmlMapping is a class in Aspose.Words FOSS for Java.
Inherits from: Cloneable.
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.
Edition status of its 12 listed members (a property and its accessor methods are listed separately, overloads once): 12 not yet exercised by a verified example.
This class declares 7 methods for XmlMapping objects in Java programs.
Available methods include: delete, getCustomXmlPart, getPrefixMappings, getStoreItemId, getXPath, isMapped, setMapping.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: customXmlPart, mapped, 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. |
mapped | boolean | 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) → boolean | 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. |
getPrefixMappings() → String | Returns XML namespace prefix mappings to evaluate the XPath. |
getXPath() → String | Returns the XPath expression, which is evaluated to find the custom XML node that is mapped to the parent structured document tag. |
getCustomXmlPart() → CustomXmlPart | Returns the custom XML data part to which the parent structured document tag is mapped. |
isMapped() → boolean | Returns true if the parent structured document tag is successfully mapped to XML data. |
getStoreItemId() → String | Specifies the custom XML data identifier for the custom XML data part which shall be used to evaluate the XPath expression. |