Xml.XMLIntf.IXMLNode.DeclareNamespace
Delphi
procedure DeclareNamespace(const Prefix, URI: DOMString);
C++
virtual void __fastcall DeclareNamespace(const System::UnicodeString Prefix, const System::UnicodeString URI) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Xml.XMLIntf.pas Xml.XMLIntf.hpp |
Xml.XMLIntf | IXMLNode |
Description
Adds an attribute to the node that declares a specified namespace URI.
DeclareNamespace adds an attribute to this node that declares the specified namespace URI as the value of the specified prefix.
Prefix is the namespace prefix that appears in tag names that reference the namespace.
URI is the corresponding namespace URI.
Note: This method is called automatically for newly created nodes when the document's Options property includes doNamespaceDecl.