Xml.XMLDoc.TXMLNode.GetPrefixedName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetPrefixedName(const Name, NamespaceURI: DOMString): DOMString;

C++

System::UnicodeString __fastcall GetPrefixedName(const System::UnicodeString Name, const System::UnicodeString NamespaceURI);

Properties

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

Description

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

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.

See Also