"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]

Reply via email to