Xml.xmldom.ExtractPrefix

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ExtractPrefix(const AName: DOMString): DOMString;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall ExtractPrefix(const System::UnicodeString AName);

Properties

Type Visibility Source Unit Parent
function public
Xml.Xmldom.pas
Xml.xmldom.hpp
Xml.xmldom Xml.xmldom


Description

Returns the namespace prefix of an XML node's tag name.

Call ExtractPrefix to determine the namespace prefix, if any, of a full tag name for an XML node.

AName is the tag name of the XML node.

ExtractPrefix returns the namespace prefix, not including the colon (:) that separates the namespace from the local name of the XML node. If the tag name does not include a namespace prefix, ExtractPrefix returns an empty string.

See Also