That doesn't work either.  I get the following errors when I do that:

"iMtxDOM.cpp", line 325.57: 1540-1280 (S) An rvalue of type "DOM_Node"
cannot be converted to "DOM_Element".
"iMtxDOM.cpp", line 325.57: 1540-0218 (I) The call does not match any
parameter list for "DOM_Element::DOM_Element".
"/global/jjesso/xml4c4_0_0-AIX43_5.02/include/dom/DOM_Element.hpp", line
157.5: 1540-1283 (I) "DOM_Element::DOM_Element(const DOM_Element &)" is not
a viable candidate.
"iMtxDOM.cpp", line 325.57: 1540-0295 (I) A parameter of type "const
DOM_Element &" cannot be initialized with an rvalue of type "DOM_Node".
"/global/jjesso/xml4c4_0_0-AIX43_5.02/include/dom/DOM_Element.hpp", line
456.6: 1540-1283 (I) "DOM_Element::DOM_Element(ElementImpl *)" is not a
viable candidate.
"iMtxDOM.cpp", line 325.57: 1540-0256 (I) A parameter of type "ElementImpl
*" cannot be initialized with an expression of type "DOM_Node".


Dave Connet wrote:

> Try just casting to a (DOM_Element)
>         DOM_Element thisAction = (DOM_Element)nl.item(actionNum);
>
> item() returns a DOM_Node, not a DOM_Node&.
>
> Dave Connet
>
> > -----Original Message-----
> > From: Jason Jesso [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 15, 2002 9:01 AM
> > To: [EMAIL PROTECTED]
> > Subject: compatibilty
> >
> >
> > Now that I am using the latest xerces ibm xml libraries I get the
> > following compile error with the same piece of code that worked with a
> > previous xerces libraries.
> >
> > I do this:
> >
> > DOM_Document doc = parser->getDocument();
> > DOM_NodeList nl = doc.getElementsByTagName("ACTION");
> > DOM_Element thisAction = (DOM_Element &) nl.item( actionNum );
> >
> > I get the following error:
> >
> > An rvalue of type "DOM_Node" cannot be converted to "DOM_Element &".
> >
> > How can I fix this?
> >
> > Thanks
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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]



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

Reply via email to