RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.CheckNotHosted Method

Raises an EXMLDocError exception if this is a hosted node.

Pascal
procedure CheckNotHosted;
C++
__fastcall CheckNotHosted();

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. 

 

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