Ryan Koss wrote:
> What compiler and OS is this running on because I still get a the
following
> compiler error when I try to do the cast that has been stated in this
> multi-threaded email...  I am running Mandrake linux 7.1 and my compiler
is
> GCC 2.95.3
>
> xmlobject.cpp:446: conversion to non-const reference type `class
DOM_Element&'
> xmlobject.cpp:446: from rvalue of type `DOM_Node'
> make: *** [xmlobject.o] Error 1
>
> Here is the code, I am cycling through a list of DOM_Nodes here...
>
>  DOM_Element elem = static_cast<DOM_Element&>(nodeList.item(i));
>
> Any help, ideas, notion, guesses would be greatly appreciated.  Thanks in
> advance
> -ryan

The error message says it all.  Try casting to a const DOM_Element&, like
this:

   DOM_Element elem = static_cast<const DOM_Element&>(nodeList.item(i));

Dave


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

Reply via email to