RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.DeclareNamespace Method

Adds an attribute to the node that declares a specified namespace URI.

Pascal
procedure DeclareNamespace(const Prefix: DOMString; const URI: DOMString);
C++
__fastcall DeclareNamespace(const DOMString Prefix, const DOMString URI);

Use the TXMLNode object's IXMLNode interface to call the protected DeclareNamespace method. 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.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!