Feedback

  • Contents
 

XML Switch On Node Type

This XML tool determines the node type and takes a different exit path depending on the type of the node. Only the more common node types are handled here. To determine the type of the less common nodes such as Entity Reference, Entity, Document Type, Document Fragment, or Notation, use the ‘Node Type’ result of the XML Get Node Info tool.

Inputs

Node

Node which is to have its type determined.

Exit Paths

Element

This path is taken if the node is an Element.

Attribute

This path is taken if the node is an Attribute.

Text

This path is taken if the node is a Text node.

CDATA

This path is taken if the node is a CDATA Section.

Document

This path is taken if the node is a Document.

Comment

This path is taken if the node is a Comment.

PI

This path is taken if the node is a Processing Instruction.

Other

This path is taken if the node is any node other than one previously listed.

NULL

This path is taken if the node handle is NULL.

Failure

This path is taken if an error occurred determining node type.