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

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.
mappedbooleanReadReturns 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) → booleanSets 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() → StringReturns XML namespace prefix mappings to evaluate the XPath.
getXPath() → StringReturns the XPath expression, which is evaluated to find the custom XML node that is mapped to the parent structured document tag.
getCustomXmlPart() → CustomXmlPartReturns the custom XML data part to which the parent structured document tag is mapped.
isMapped() → booleanReturns true if the parent structured document tag is successfully mapped to XML data.
getStoreItemId() → StringSpecifies the custom XML data identifier for the custom XML data part which shall be used to evaluate the XPath expression.

See Also