RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.GetPrefixedName Method

Returns a node name includes a namespace prefix for a specified namespace URI.

Pascal
function GetPrefixedName(const Name: DOMString; const NamespaceURI: DOMString): DOMString;
C++
__fastcall DOMString GetPrefixedName(const DOMString Name, const DOMString NamespaceURI);

GetPrefixedName adds a prefix to a local node name based on the specified namespace URI. If there is no corresponding namespace already declared or if the name is already prefixed, GetPrefixedName returns the original node name. 

Name is the node name to which the namespace prefix should be added. 

NamespaceURI is the URI for the namespace that should be identified by the namespace prefix.

Note: If the document containing this node does not include doAutoPrefix in its Options property, GetPrefixedName always returns the value of Name, without trying to generate or add a namespace prefix.
 

 

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