You have to cast it to a DOM_Element to do that:

        New_Sons = ((DOM_Element&) Node_Son).GetChildNodes();           

> -----Original Message-----
> From: XML MAN [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 19, 2001 11:51 AM
> To: [EMAIL PROTECTED]
> Subject: 'GetChildNodes' is not a member of 'DOM_Node' 
> 
> 
> Hi again!
> 
> I am trying to build a function, whose parameter is 'List'
> (DOM_NodeList):
> 
> ---//----
> DOM_Node Node_Son;
> DOM_NodeList New_Sons;
> long Number_Sons;
> int i;
> 
> Number_Sons = List.getLength();
>       
> for (i = 0; i < Number_Sons; i++) {
>   Node_Son = List.item(i);
>   if (Node_Son.getNodeType() == DOM_Node.ELEMENT_NODE) {
>     if (Node_Son.getNodeName().equals("Tom")) {
>       ...
>     } 
>     else if (Node_Son.getNodeName().equals("GranPa")) {
>       New_Sons = Node_Son.GetChildNodes();            
>     }
>   } 
> }
> ---//---
> 
> But I get this error:
> error C2039: 'GetChildNodes' : is not a member of 'DOM_Node' 
> 
> Any experience with this message???
> _______________________________________________________________________
> Tu correo gratuito en HispaVista - http://www.hispavista.com/altacorreo/
> 
> ---------------------------------------------------------------------
> 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