NAME
XML::Xalan::DOM - Exports DOM node type constants
SYNOPSIS
use XML::Xalan;
use XML::Xalan::DOM;
...
my $parsed = $tr->parse_file($files);
my $dom = $parsed->get_document();
my $root = $dom->getDocumentElement();
my $node = $element->getFirstChild();
if ($node->getNodeType() == ELEMENT_NODE) {
print "Node is of type XML::Xalan::DOM::Element\n";
}
DESCRIPTION
This module exports the following constants which represent DOM node types:
UNKNOWN_NODE(0) an unknown node
ELEMENT_NODE(1) an Element node
ATTRIBUTE_NODE(2) an Attribute node
TEXT_NODE(3) a Text node
CDATA_SECTION_NODE(4) a CDATASection node
ENTITY_REFERENCE_NODE(5) an EntityReference node
ENTITY_NODE(6) an Entity node
PROCESSING_INSTRUCTION_NODE(7) a ProcessingInstruction node
COMMENT_NODE(8) a Comment node
DOCUMENT_NODE(9) a Document node
DOCUMENT_TYPE_NODE(10) a DocumentType node
DOCUMENT_FRAGMENT_NODE(11) a DocumentFragment node
NOTATION_NODE(12) a Notation node
Note that DOM API in Xalan C++ 1.2 hasn't been completely finished yet. Some methods are known to simply return 0.
AUTHOR
Edwin Pratomo, edpratomo@cpan.org
SEE ALSO
XML::Xalan::Transformer
(3), XML::Xalan::DocumentBuilder
(3), XML::Xalan::ParsedSource
(3).