Xml.XMLDoc.TXMLNode.SetAttributeNS

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetAttributeNS(const AttrName, NamespaceURI: DOMString; const Value: OleVariant);

C++

void __fastcall SetAttributeNS(const System::UnicodeString AttrName, const System::UnicodeString NamespaceURI, const System::OleVariant &Value);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLNode

Description

Sets the value of one of this node's attributes when you must explicitly specify the attribute's namespace.

Use the TXMLNode object's IXMLNode interface to call the protected SetAttributeNS method. SetAttributeNS sets the value of a specified attribute of this node.

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.

NamespaceURI is the namespace for the attribute.

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