Xml.XMLDoc.TXMLDocument.NSPrefixBase
Delphi
property NSPrefixBase: DOMString read FNSPrefixBase write FNSPrefixBase;
C++
__property System::UnicodeString NSPrefixBase = {read=FNSPrefixBase, write=FNSPrefixBase};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Xml.XMLDoc.pas Xml.XMLDoc.hpp |
Xml.XMLDoc | TXMLDocument |
Description
Specifies the base string for automatically-generated namespace prefixes.
The AddChild method for each node allows the caller to specify that the new node should use an automatically-generated namespace prefix. When this option is specified, the node uses NSPrefixBase to generate a unique string to act as a namespace prefix. This unique string consists of NSPrefixBase followed by a number that ensures uniqueness. Thus, for example, if NSPrefixBase is 'NS', automatically-generated namespace prefixes have the form 'NS1', 'NS2', and so on.
The generated namespace prefixes are only unique within a single document. If two document components have the same value for NSPrefixBase, they will generate the same namespace prefixes.
See Also