It's OK this way. Thanks a lot.
[EMAIL PROTECTED] sur 18/02/2000 16:22:00 Pour : [EMAIL PROTECTED]@hub cc : (ccc : Gilles FILIPPINI/SEPTEN/DE/EDFGDF/FR) Objet : RE: R�f. : Re: [Xerces C++] Usage You can cast the DOM_Node to a DOM_Element. Simply perform the cast, like this: ... DOM_Node node = nodeList.item(i); DOM_Element elem = (const DOM_Element&)node; ... You may cast-off 'const-ness' if necessary... Kind of ugly, but it works. -----Original Message----- From: Gilles FILIPPINI [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2000 7:55 AM To: xerces-dev Subject: R�f. : Re: [Xerces C++] Usage I had the idea about casting l1 to DOM_Element. Unfortunately, such an operation seems not to be allowed by the Xerces DOM C++ implementation. For example, with l1 being a DOM_Node, the statement : DOM_Element elt = l1; leads to the compilation error : Cannot use DOM_Node to initialize DOM_Element. I also tried : DOM_Element elt = DOM_Element(l1); to obtain : Cannot cast from DOM_Node to DOM_Element Any idea ? ---- snip ----
