RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
xmldom.ExtractPrefix Function

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

Pascal
function ExtractPrefix(const AName: DOMString): DOMString;
C++
DOMString ExtractPrefix(const DOMString AName);

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. 

 

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