IDOL Community Component 23.4

# type

The `type` method returns the type of the node as a string.

## Syntax

    type()

## Returns

(String) A string containing the type. Possible values are:

    element_node comment_node element_decl

    attribute_node document_node attribute_decl

    text_node document_type_node entity_decl

    cdata_section_node document_frag_node namespace_decl

    entity_ref_node notation_node xinclude_start

    entity_node html_document_node xinclude_end

    pi_node dtd_node docb_document_node

Copyright 2023 Open Text
Version 23.4 | Last updated September 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL IDOL Community Component 23.4

Topic Title: type