XmlValue::getNodeType

#include <DbXml.hpp>

class DbXml::XmlValue {
public:
	...
	short getNodeType() const
	...
};

Returns the short value for this node's type (XmlValue::NodeType).

Valid values for XmlValue::NodeType are:

ELEMENT_NODE PROCESSING_INSTRUCTION_NODE
ATTRIBUTE_NODE COMMENT_NODE
TEXT_NODE DOCUMENT_NODE
CDATA_SECTION_NODE DOCUMENT_TYPE_NODE
ENTITY_REFERENCE_NODE DOCUMENT_FRAGMENT_NODE
ENTITY_NODE NOTATION_NODE

If the node type is not XmlValue::NODE, XmlException::INVALID_VALUE is thrown.

Class

XmlValue

See Also

XmlValue Methods