TXFADataStructureLimits Record

TXFADataStructureLimits in HPDFXFADataStructure supplies aggregate limits to TXFADataStructure.Create

FieldMeaning
MaxNodes: IntegerMaximum attached and detached native nodes, including ordinary text, comments, and processing instructions
MaxDepth: IntegerMaximum depth from a borrowed or detached root at depth zero, including text/content children
MaxBytes: Int64Maximum aggregate UTF-8 bytes in local names, prefixes, namespace URIs, values, instruction targets, attributes, and namespace declarations

All fields must be positive; MaxNodes and MaxDepth must also be below High(Integer)

The native graph counts ordinary text both in the parent's aggregate value and in the owned text child when both representations exist

Namespace declarations materialized during clone, detach, or insertion are included before ownership changes; attached and detached forests share the same byte and node allowance

The scripting runtime uses 65,536 nodes, depth 64, and 16 MiB as structural caps, alongside its existing script action, value, operation, elapsed-time, and cancellation limits