Initializing help system before first use

gettype

Purpose
Get the type of a node.
Synopsis
function gettype(doc:xmldoc, n:integer):integer
Arguments
doc 
Document to use
Node number
Return value
The type of the node:
XML_ELT 
an element
XML_TXT 
a text
XML_CDATA 
a CDATA section
XML_COM 
a comment
XML_DATA 
a data section
XML_PINST 
a processing instruction
XML_ATTR 
an attribute
-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

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.