commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Brickell <Paul.Brick...@Virginmobile.com>
Subject RE: JXpath for DOM returning DOM objects?
Date Fri, 21 Jun 2002 12:20:13 GMT
Dmitri,

Thanks for tip, I will try it out.


Cheers,
Paul Brickell.

> -----Original Message-----
> From:	Dmitri Plotnikov [SMTP:dmitri@apache.org]
> Sent:	21 June 2002 13:11
> To:	Jakarta Commons Developers List
> Subject:	Re: JXpath for DOM returning DOM objects?
> 
> 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>
> 


--
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