The C++ syntax for static cast is static_cast<DOMElement*>(node)
Good try. Unfortunately it has not helped. :-/
Time to get drunk...
// --------------------------------------------------------------------------- // printAttributeValue // --------------------------------------------------------------------------- static void printAttributeValue(DOMNode *node, char *attributeName) { const XMLCh *attrName;
DOMElement *nodeElement = NULL;
if (node)
{
nodeElement = static_cast(DOMElement*)(node); // line 32
attrName = nodeElement->getAttribute(XMLString::transcode(attributeName));
}return;
} // printAttributeValue()
DomParse.cpp: In function `void printAttributeValue(xercesc_2_2::DOMNode*, char*)': DomParse.cpp:32: parse error before `DOMElement' make: *** [DomParse.o] Error 1
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
