getParent()

If I want to get a specific Element within my XML document I use XQuery and JDOM Object:

queryString = "for $b in input()/path & condition "
queryString += “return $b”;

For this queryString I get an Element.
But how do I get the Parent of this Element.

Is there anything like this :
queryString += “return $b.getParent()”;

thanks
Aykut

Hi Aykut,

use the parent axis abbreviated …
i.e. return $b/…

Regards,
Juliane.

If not you can also use the
return parent::$b
I hope this help

I have decided myself for
"return $b/…"

Thank you !!!
Aykut