---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/XfaAccessor
---

# 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

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Form` | `Form` | Read | The owning Form. |
| `Template` | `XmlNode?` | Read | The XFA template root element, or null when no template is present in the XFA package. |
| `NamespaceManager` | `XmlNamespaceManager` | Read | An XmlNamespaceManager pre-bound with the standard XFA prefixes ("tpl" → template, "xfa" → data, "datasets" → datasets). |
| `FieldNames` | `string[]` | Read | Dotted-path field names for every &lt;field&gt; element in the XFA template, indexed by document order so each repeated subform/field gets its own [N] suffix. |
| `Datasets` | `System.Xml.XmlElement?` | Read | Get the XFA Datasets as an XmlElement. |

## Methods

| Signature | Description |
|-----------|-------------|
| `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 &lt;tpl:field&gt; 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

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)