Hi,
when I have the DOM structure created using Xerces-C++, then I can get the DOMDocument object. From it I get the first DOMElement object. How do I get the other DOMElement objects? I can only call the DOMNode::getFirstChild() which returns me the node of type ELEMENT_NODE but dynamic cast to DOMElement on it fails and typeid says that it is of type DOMNode. So how to do it?
You cannot use dynamic_cast<> unless you compile the sources with RTTI enabled; you should just use the (DOMElement*) cast, once you have tested that the node type is DOMNode::ELEMENT_NODE
Alberto
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]