DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17320>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17320

dynamic_cast from DOMNode to DOMElement throws exception

           Summary: dynamic_cast from DOMNode to DOMElement throws exception
           Product: Xerces-C++
           Version: 2.2.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I'm using the following lines on a very simple xml file and a valid node:

   if(node->getNodeType()== DOMNode::ELEMENT_NODE )
        DOMElement*     element = dynamic_cast<DOMElement*>(node);

and on the dynamic_cast line it throws an exception, which is not a bad_cast 
exception (I've tried to catch it with no luck)

while this is so, a static_cast works like a charm all through the xml several 
times with no errors. seems odd

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to