THotPDF.IsXMLNMToken

Unit: HPDFDoc

Declaration

function IsXMLNMToken(const Value: AnsiString): boolean;

Behaviour

Returns True when every character of the value lies in the ASCII NameChar subset: letters, digits, ., -, _ and :, with a non-empty value required

The full XML production also admits every Unicode letter, combining character and extender, which this writer cannot verify from an AnsiString, so a name outside the subset is refused instead of being written into /NodeNameList or a DPM key on trust

Related APIs

THotPDF.AddPDFVTNode, THotPDF.PDFVTCompliance and THotPDF.SetPDFVTNodeNames