Hello,
Here is my problem.
Let us say the datamodel is as follows
[Root Node] -> [Node1] -> [Node2] ->[Node3] -> [Node4] ->[Node5] -> [Node6] ->[Node7] -> [Node8]
Say [Root Node] is associated with namespaceindex 0, [node1] is associated with namespace index 1 and [Node2] and further nodes are associated with namespace index 2
Now say ,if I know only namespaceindex 2 of server and I want to browse the 1st node in that namespaceindex , i;e [ node2].
How could I do it directly.
Getting 1st node of any namespaceindex from node tree
Moderator: uasdknet
-
- Sr. Member
- Posts: 13
- Joined: 12 Mar 2014, 10:50
- Support Team
- Hero Member
- Posts: 3072
- Joined: 18 Mar 2011, 15:09
Re: Getting 1st node of any namespaceindex from node tree
Hello,
There is no direct way to browse the "first" node of a namespace. You can write a recursive browse method that calls the recursive method again if the node is from a namespace that you are not intertested in. But there can be / will be more than one "first" nodes.
What is your use case?
Best regards
Support Team
There is no direct way to browse the "first" node of a namespace. You can write a recursive browse method that calls the recursive method again if the node is from a namespace that you are not intertested in. But there can be / will be more than one "first" nodes.
What is your use case?
Best regards
Support Team