Search code examples
xerces-c

xercesc NodeType not declared


I am developing an application to read XML files using xerces-c-3.1.1 using C++ on Netbeans 8.0.1.

I have a variable defined as type DOMNode* as follows

   DOMNode* attribute=attributes->item(aIndex);

When I expand attribute in the debugger, it displays a function, getNodeType(), that returns a variable of type. However,when I add the code

 NodeType value=attribute->getNodeType();

I get the error message

error: ‘NodeType’ was not declared in this scope

Solution

  • You could try xercesc::DOMNode::NodeType instead of writing NodeType.