"Jason E. Stewart" <[EMAIL PROTECTED]> asks > Would dynamic_cast<> be appropriate here? > > DOM_Element childElem = dynamic_cast<DOM_Element&> node; No. The "objects" are actually just smart pointers, and don't have any virtual functions or access to type information, at least from the C++ runtime's point of view. An explicit check of the node type before doing an unchecked static cast is the best approach. Andy Heninger IBM XML Technology Group, Cupertino, CA [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
- Casting DOM_Node to DOM_Element Arnold, Curt
- Re: Casting DOM_Node to DOM_Element John Snelson
- RE: Casting DOM_Node to DOM_Element David E. Cleary
- Re: Casting DOM_Node to DOM_Eleme... Miroslaw Dobrzanski-Neumann
- Re: Casting DOM_Node to DOM_E... Ryan Koss
- Re: Casting DOM_Node to ... Andy Heninger
- Re: Casting DOM_Node... Ryan Koss
- RE: Casting DOM_Node to DOM_Element Sean Forde
- Re: Casting DOM_Node to DOM_Element Jason E. Stewart
- RE: Casting DOM_Node to DOM_Eleme... Andy Heninger
- RE: Casting DOM_Node to DOM_Element David_N_Bertoni
- RE: Casting DOM_Node to DOM_Element peiyongz
- RE: Casting DOM_Node to DOM_Element David_N_Bertoni
- RE: Casting DOM_Node to DOM_Element peiyongz
- RE: Casting DOM_Node to DOM_Element Arnold, Curt
