DOM_Node aNode = aNodeList.item(0);
if (aNode.getNodeType() !=  DOM_Node::ELEMENT_NODE)
   punt;

DOM_Element aElement = (DOM_Element&)aNode;

Regards,
Jim

> -----Original Message-----
> From: Jorge Pozo Ramirez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 11:54 AM
> To: [EMAIL PROTECTED]
> Subject: Class Casting DOM_Element / DOM_Node
> 
> 
>     Hi there.
> 
>     I have a DOM_Element, and I use getElementsByTagName(), so I get a
> DOM_NodeList.
> 
>     For each node within this list, I want to do another search like
> getElementsByTagName(), but as DOM_NodeList.item(i) returns a 
> DOM_Node,
> (that lacks the getElementsByTagName() method), how can I 
> cast the DOM_Node
> returned by NodeList.item(i) into a DOM_Element?
> 
> Thanks.
> 
> Jorge
> 
> 
> 
> **********************************************************************
> Este mensaje ha sido analizado con una herramienta de
> deteccion de virus para su seguridad.
> 
> Ministerio de Justicia
> www.mju.es
> **********************************************************************
> 
> ---------------------------------------------------------------------
> 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