RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IXMLNode.Prefix Property

Identifies the namespace prefix of the node's name.

Pascal
property Prefix: DOMString;
C++
__property DOMString Prefix;

Prefix is the namespace prefix of an element or attribute node's name. A namespace prefix is a symbolic name for a namespace URI. 

For element nodes, the namespace prefix is derived from the name that appears in the XML tag. For example, the namespace prefix for <xsi:Name First="John" Last="Doe"> is 'xsi'. 

For attribute nodes, the namespace prefix is derived from the string that appears to the left of the equals sign in the attribute declaration. For example the element <xsi:Name xsn:First="John" Last="Doe"> results in two attribute nodes, with namespace prefixes of 'xsn' and '', respectively. Note that the attribute never inherits a namespace prefix from the node to which it is attached. 

For any other node types, the namespace prefix is nil (Delphi) or NULL (C++). 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!