commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitri Plotnikov" <dmi...@apache.org>
Subject Re: FW: [JXPath] attribute axis
Date Thu, 25 Mar 2004 04:08:53 GMT
Chris,

I've changed NodePointer.getParent() to return the actual parent, not the
intermediate pointer.

Please verify that the fix actually addressed your issue.

Thank you for reporting this issue.

- Dmitri

----- Original Message ----- 
From: "Chris White" <chris.white@comcast.net>
To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>;
<dmitri@apache.org>
Cc: "John Landers" <jcl@caredatasystems.com>
Sent: Tuesday, March 16, 2004 2:17 PM
Subject: RE: FW: [JXPath] attribute axis


> We are trying navigate back up a context using getParent(). When using a
> dynamic properties, there appears to be an intermediary node between the
> node pointer for a property and its real parent.
>
> There is probably some reason for this but it would be helpful if
> getParent() returned the real node pointer for the parent. We have been
> working around the problem with the following code:
>
> // this is done to by pass the extra node pointer between the parent
> // and its child.
> if (parent.getNode() == parent.getParent().getNode() )
> {
>     parent = parent.getParent();
> }
>
> Do you know of a way we could avoid this hack?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message