aspose file tools*
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
Author

LDIF contents display in Tree

raga p
Greenhorn

Joined: Apr 23, 2007
Posts: 1
Hi,

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
Bartender

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!


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

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...
 
 
subject: LDIF contents display in Tree