الطريقة TXFANode.SetAttribute
procedure SetAttribute(const N, AValue: AnsiString);
تسند سمة على العقدة، مستبدلةً اسمًا قائمًا حساسًا لحالة الأحرف أو تُلحق سمة جديدة
N and AValue contain UTF-8 bytes, matching the node's XML names and text; the method converts to the compiler's string-list representation and preserves BMP characters, supplementary characters, and leading or trailing whitespace when saving and reloading XDP
An empty AValue creates or retains a present attribute with an empty value, serialized as name=""; use RemoveAttribute to delete the attribute
HasAttr distinguishes a present empty attribute from an absent attribute; AttrValue returns an empty string in either case
استبدال قيمة يحفظ موضع السمة وهوية العقدة؛ وتكرار الإسناد نفسه لا يضيف سمات مكررة ولا يوسم حزمة غير متغيرة كمعدلة
An empty N raises EHPDFXFAError before changing the node
The owning TXFAPacketDOM enforces its attribute-count and attribute-byte limits when serializing; empty attributes count toward both limits
حدود بايتات السمات تعد اسم UTF-8 المسلسل والفاصل وبايتات القيمة، بما يشمل كل بايتات المحرف التكميلي