"Fabrice Landrodie" <[EMAIL PROTECTED]> writes: > I had a look on the problem you observe in getFirstChild() method and I > think it could be a problem of multiple inheritance and dynamic cast : > > In Xerces-c-1_7, DOMDocument class inherites only from DOMNode class, so > that the static cast always works. > > But in Xerces-c-2_0, DOMDocument class inherites from 3 objects : > DOMDocumentRange, DOMDocumentTraversal and DOMNode. So the cast of a > pointer from this object is now less easy to do. A dynamic cast has to be > used to ensure a good conversion. > > This problem is explained in SWIG doc1.3 ( > http://www.swig.org/Doc1.3/SWIGPlus.html#n19 ). > > Do you think it could be the cause of the problem you have ?
Thanks again Fabrice for looking into this. I don't understand the discussion well enough to see how to implement a fix. How can dynamic_cast<> help in this case? > Moreover, could you send me the program you use to test the Xerces-p. It > would be helpfull for me to be sure we have both the same behaviour. Just run make test, or run any of the t/DOM* tests - most if not all of them fail because of the problem. jas. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
