XfaAccessor

Overview

XfaAccessor is a class in Aspose.PDF FOSS for .NET.

Provides indexer access to XFA field values by path.

This class provides 5 methods for working with XfaAccessor objects in .NET programs. Available methods include: EndCachedUpdates, GetFieldNode, GetFieldTemplate, GetFieldTemplates, GetNamespaceManager. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Datasets, FieldNames, Form, NamespaceManager, Template.

Properties

NameTypeAccessDescription
FormFormReadThe owning Form.
TemplateXmlNode?ReadThe XFA template root element, or null when no template is present in the XFA package.
NamespaceManagerXmlNamespaceManagerReadAn XmlNamespaceManager pre-bound with the standard XFA prefixes (“tpl” → template, “xfa” → data, “datasets” → datasets).
FieldNamesstring[]ReadDotted-path field names for every <field> element in the XFA template, indexed by document order so each repeated subform/field gets its own [N] suffix.
DatasetsSystem.Xml.XmlElement?ReadGet the XFA Datasets as an XmlElement.

Methods

SignatureDescription
GetNamespaceManager()Method-form alias for NamespaceManager.
GetFieldTemplate(fieldName: string)Get the template XmlNode for a single field by its dotted path (e.g.
GetFieldTemplates()All <tpl:field> nodes in the template.
GetFieldNode(fieldName: string)Get the XFA data node for a field by dotted path, or null.
EndCachedUpdates()Marker that callers use after a batch of field updates to signal “no more updates pending”.

See Also