Xml.XMLDoc.TXMLNode.CheckNotHosted
Delphi
procedure CheckNotHosted;
C++
void __fastcall CheckNotHosted(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Xml.XMLDoc.pas Xml.XMLDoc.hpp |
Xml.XMLDoc | TXMLNode |
Description
Raises an EXMLDocError exception if this is a hosted node.
Applications can't call this protected method. It is used internally in methods that can only be used by the main node that corresponds to an element. If the node represents a hosted node (that is, if the node is used to represent a subset of the main, or host, node), then CheckNotHosted raises an EXMLDocError exception.
For example, the CreateCollection method calls CheckNotHosted, because only the main node for an element can host collection nodes.