Skip to content

How to get parent for Node? #297

Closed Answered by eemeli
evidolob asked this question in Q&A
Discussion options

You must be logged in to vote

At least for now that's not directly available from a Node, as they do not maintain parent links. If you have a reference for the node's Document, then the easiest way to find the parent is almost certainly to visit() the doc, terminating the iteration when you find it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@evidolob
Comment options

Answer selected by eemeli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants