Xml.XMLIntf.IXMLNode.SetAttribute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetAttribute(const AttrName: DOMString; const Value: OleVariant);

C++

virtual void __fastcall SetAttribute(const System::UnicodeString AttrName, const System::OleVariant &Value) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Xml.XMLIntf.pas
Xml.XMLIntf.hpp
Xml.XMLIntf IXMLNode

Description

Sets the value of one of this node's attributes.

SetAttribute is the write implementation for the Attributes property.

AttrName is the name of the attribute. If the attribute already exists for the node, its value is changed. If the attribute does not already exist, a new attribute is created.

Value is the value to assign to the attribute. This value is a string that is not parsed. Any markup (for example, for an entity reference) is treated as literal text, and must include appropriate escape sequences. If Value is NULL, the attribute is removed from this node. If Value is an empty string, the attribute is assigned an empty value.

See Also