[ 
https://issues.apache.org/jira/browse/GROOVY-7489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14614530#comment-14614530
 ] 

Suminda Dharmasena edited comment on GROOVY-7489 at 7/6/15 4:32 AM:
--------------------------------------------------------------------

This is different from https://issues.apache.org/jira/browse/GROOVY-7488. 
Currently you have functionality to get the parent and children. This is to get 
the parent of parents or children of children and at level n.

Say I am at tag X and I am not interested in the next tag but the tags after.

<items type="XYZ">
<list>
<x>1</x>
<y>2</x>
<z>3</z
</list>
<list>
<x>A</x>
<y>B</x>
<z>C</z
</list>
</items>

I am interested in items 2 levels down as when I am at items I know the child 
will be just a list which contains 3 items. Likewise say you are looking at a 
note but to get more content you have to look a few parents up.


was (Author: [email protected]):
This is different from https://issues.apache.org/jira/browse/GROOVY-7488. 
Currently you have functionality to get the parent and children. This is to get 
the parent of parents or children of children and at level n.

Say I am at tag X and I am not interested in the next tag but the tags after.

<items type="XYZ">
<list>
<x>1</x>
<y>2</x>
<z>3</z
</list>
</items>

I am interested in items 2 levels down as when I am at items I know the child 
will be just a list which contains the items. Likewise say you are looking at a 
note but to get more content you have to look a few parents up.

> List All Nodes +/-n levels from current node
> --------------------------------------------
>
>                 Key: GROOVY-7489
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7489
>             Project: Groovy
>          Issue Type: Improvement
>          Components: groovy-jdk
>            Reporter: Suminda Dharmasena
>            Priority: Minor
>              Labels: usertask
>
> Ability to query nodes at +/- n levels from the current level. If n = 0 then 
> nodes at current level.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to