Skip to content

ChangeNodeClass - cXMLDOMNode

Changes the class of an XML node

Type: Function
Return Data Type: Handle

Parameters

Parameter Type Description
hoNode Handle The handle of the node class to be changed
iClassID Integer The DataFlex class ID (usually U_Classname)

Syntax

Function ChangeNodeClass Handle hoNode Integer iClassID Returns Handle

Call Example

Get ChangeNodeClass hoNode iClassID to HandleVariable

Description

ChangeNodeClass would be used if you wished to change the class of a returned node. Using the passed object handle, the old object is destroyed and a new object is created based on the new type - that handle is returned.

You would only do this if you want to use a sub-class of the node's class.

This let's you change the class id of an object on an object by object basis. This would let you create nodes (e.g. elements) that have a custom interface for each node type. Normally, this would be sent after a node has been created using one of the default classes.

This is a an advanced topic.

Return Value

Returns an object handle to the newly changed node object.