If you're using Xerces-C++, DOM_NodeList is a smart-pointer to an
implementation class, so you'll need to consult the Xerces source code and
documentation for information on how to create an
implementation class that's appropriate for use with DOM_NodeList.  I'm not
sure this is possible, since their implementation interfaces and classes
are considered internal.

The other problem you'll face is returning smart-pointer DOM_Node
instances.  That's possible, but it can be tricky.  A search of the mail
archives on both the Xalan developer list, and the Xalan-C user list will
give you the information you need.

The fundamental problem is that the Xerces DOM_Node smart-pointer
implementation is extremely difficult to extend, as it has no public
abstract classes.

Dave



|---------+--------------------------->
|         |           "Huynh, Dung"   |
|         |           <dung@rsasecurit|
|         |           y.com>          |
|         |                           |
|         |           04/01/2002 03:07|
|         |           PM              |
|         |           Please respond  |
|         |           to xalan-dev    |
|         |                           |
|---------+--------------------------->
  
>---------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                       |
  |        To:      "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>            
                                       |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                               
                                       |
  |        Subject: RE: XPath - NodeSet - Xerces Dom Node List                         
                                       |
  
>---------------------------------------------------------------------------------------------------------------------------|




Sorry, I am using Xerces C++ v1.6 and Xalan C++ 1.3.

> -----Original Message-----
> From: David N Bertoni/Cambridge/IBM
> [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 01, 2002 2:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re: XPath - NodeSet - Xerces Dom Node List
>
>
>
> You don't say whether you're using the Java or C++ processor, so it's
> impossible to answer this question.
>
> It's difficult to convert a node-set to a document, since they are so
> conceptually different.   For example, a node-set could contain all
> attribute nodes.  How could such a node-set be converted to a
> document?
>
> Dave
>
>
>
> |---------+--------------------------->
> |         |           "Huynh, Dung"   |
> |         |           <dung@rsasecurit|
> |         |           y.com>          |
> |         |                           |
> |         |           04/01/2002 02:38|
> |         |           PM              |
> |         |           Please respond  |
> |         |           to xalan-dev    |
> |         |                           |
> |---------+--------------------------->
>
> >-------------------------------------------------------------
> --------------------------------------------------------------|
>   |
>                                                                 |
>   |        To:      [EMAIL PROTECTED]
>                                                                 |
>   |        cc:      (bcc: David N Bertoni/Cambridge/IBM)
>                                                                 |
>   |        Subject: XPath - NodeSet - Xerces Dom Node List
>                                                                 |
>
> >-------------------------------------------------------------
> --------------------------------------------------------------|
>
>
>
> Has any one run across the following problem or know how to do the
> following?
>
> Evaluating an XPath expression using Xalan Xpath will return
> the result
> data
> in NodeSet.
> Is there a way to convert Xalan Nodeset back to Xerces Dom node list?
>
> Alternatively, is there a way to convert the result Xpath
> nodeset to DOM
> Document?
>
> Thanks for any input.
>
>
> Dung Huynh         2955 Campus Drive #400
> Consultant Engineer            San Mateo, CA 94403
> [EMAIL PROTECTED]           (650) 295-7539
>
> RSA Security, Inc.
> The most trusted name in e-Security
>
>
>
>
>
>
>





Reply via email to