commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Plotnikov <dmi...@apache.org>
Subject Re: JXpath for DOM returning DOM objects?
Date Fri, 21 Jun 2002 12:11:10 GMT
Yes, it is, but you will have to use an internal API.

First, acquire a pointer:

    Pointer pointer = context.getPointer(xpath);
or
    Iterator iter = context.iteratePointers(xpath);

Then cast (each) pointer to NodePointer.

Finally, call "getNodeValue()" on the pointer.

The rationale for this method not being on the public interface is to hide
differences between DOM, JDOM and other XML parse trees.

I hope this helps.

- Dmitri


----- Original Message -----
From: "Paul Brickell" <Paul.Brickell@Virginmobile.com>
To: <commons-dev@jakarta.apache.org>
Sent: Friday, June 21, 2002 7:41 AM
Subject: JXpath for DOM returning DOM objects?


> Is it possible to use this API to access DOM objects (Node, Attr, Element
etc)?
>
>
> --
> To unsubscribe, e-mail:
<mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:commons-dev-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message