DOM_Node n = // some node;
DOM_Entity e = dynamic_cast<DOM_Entity>(n);

I do not know what compiler you are using, but you will need to set the /GR
switch on VC++ compilers. This is done by going to Project->settings, select
the C/C++ tab, select the C++ Language category, and click on "Enable
Run-Time Type Information (RTTI)" to enable it.

> -----Original Message-----
> From: Awasthi, Anand [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, June 08, 2001 2:58 PM
> To:   '[EMAIL PROTECTED]'
> Subject:      sample for down casting DOM_Node to DOM_Entity ??
> 
> Hi,
> 
> could someone pls provide sample code for down casting DOM_Node to
> DOM_Entity ??
> 
> thanks
> Anand
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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

Reply via email to