File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes LDIF contents display in Tree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "LDIF contents display in Tree" Watch "LDIF contents display in Tree" New topic

LDIF contents display in Tree

raga p

Joined: Apr 23, 2007
Posts: 1

I have to read the contents form an ldif file and display it with in a tree, in that the first dn, should be taken as root dn, and next as child nodes with all the properties of dn.

I displayed all the dn's but am not understanding how to take root dn and child nodes. please help me if any one know.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

"raga p" -

Welcome to the JavaRanch! We don't have many rules around the ranch, but we do have a policy on displayed names... Please adjust your displayed name to meet the JavaRanch Naming Policy. User names cannot be obviously fake and must consist of a first name and a last name.

You can change your user name here.

Thanks! and welcome to the JavaRanch!

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

The "root dn" idea is confusing to me too...

Shouldn't the "root" of the tree be the file itself? Then have child dn's under it, and those have children properties?

This is kind of a crude example, parsing should be better -

I got the example input from Wikipedia...
I agree. Here's the link:
subject: LDIF contents display in Tree
It's not a secret anymore!