TXFANode.AddProcessingInstruction Method

function AddProcessingInstruction(const ATarget, AValue: AnsiString): TXFANode;

Appends an owned #text node with XMLContentKind=xckProcessingInstruction and returns that child; ATarget is its UTF-8 XML Name and AValue contains literal instruction data

The serializer preserves leading data whitespace when supplied, inserts a separating space for nonempty data that starts without whitespace, and emits no separator for empty data

Invalid XML characters or targets, reserved xml targets and the closing instruction delimiter inside data raise EHPDFXFAError before publishing a child

The instruction does not change the parent's aggregate Value; the parent owns the returned node

TXFANode and Native XML Content