Getting 1st node of any namespaceindex from node tree

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
milublues
Sr. Member
Sr. Member
Posts: 13
Joined: 12 Mar 2014, 10:50

Getting 1st node of any namespaceindex from node tree

Post by milublues »

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.

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re: Getting 1st node of any namespaceindex from node tree

Post by Support Team »

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

Post Reply