Based on
http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641
247, I think you've got it right. However, if you want to use the node name
and value directly, you'll first need to check the node type as Hiran
suggested, just as you would before statically casting it. If your library
is built with RTTI, you should also be able to use a dynamic cast (and check
if it succeeds, of course).

> -----Original Message-----
> From: Endre Magyari [mailto:[EMAIL PROTECTED] 
> Sent: Friday, February 20, 2004 9:00 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Annotations
> 
> 
> 
> Thanks all,
> 
> 
> 
>       so getTarget() gives "udm" and getData() gives ' name1="value1" 
> name2="value2"'
>       
>       The name of such a  node is also "udm" ? And it's value 
> is the data, 
> unparsed?
> 
>       If not, and if I need the class 
> DOMProcessingInstruction to access the 
> information, how do I downcast a DomNode to DOMProcessingInstrcution?
> 
>       Can I use RTTI or static_cast ?
> 
> Thanks,
> Endre.

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

Reply via email to