Find Outer Sequence

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
NDT
Posts: 7
Joined: Mon, 2006-10-16, 10:08

Find Outer Sequence

#1 Post by NDT »

Hi,
We have a complex data structure
oganized
as

Code: Select all

Sequence
    Item
        Data1
        Data2
        ....
        Sequence
            Item
                 Data3
                 Data4
                 ....
            Item End
            Item
                 Data3
                 Data4
                 ....
            Item End
             ...
        Sequence End
     Item End
    Item
        Data1
        Data2
        ....
        Sequence
            Item
                 Data3
                 Data4
                 ....
            Item End
            Item
                 Data3
                 Data4
                 ....
            Item End
             ...
        Sequence End
     Item End
    Item
        Data1
        Data2
        ....
        Sequence
            Item
                 Data3
                 Data4
                 ....
            Item End
            Item
                 Data3
                 Data4
                 ....
            Item End
             ...
        Sequence End
     Item End
Sequence end
Iteratively the access to the inner sequence is required
Currently this is implemented just using
findAndGetElements with the inner sequence tag.
We get a stack with the inner sequences
Now we need some data from the outer sequence
Is there a way to find the outer element if the inner element is given?
Or is the only way to iterate from top to down?

Regards
NDT

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

One way would be to use the underlying search() method.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Baidu [Spider] and 1 guest