gettype
gettype |
Purpose
Synopsis
function gettype(doc:xmldoc, n:integer):integer
Arguments
doc
|
Document to use
|
n
|
Node number
|
Return value
The type of the node:
XML_ELT
|
|
XML_TXT
|
|
XML_CDATA
|
|
XML_COM
|
|
XML_DATA
|
|
XML_PINST
|
|
XML_ATTR
|
|
-1
|
if the node number is not valid
|
Example
See
getname.
Further information
This function returns
-1 if the provided node number is not valid: this feature can be used to verify the validity of a node number before using it with other functions.
Related topics
Module