[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML and LDAP: Common APIs?

  • From: Lauren Wood <lauren@s...>
  • To: xml-dev@l...
  • Date: Thu, 24 Aug 2000 09:27:51 -0700

ldap xml
On 24 Aug 2000, at 13:58, Jeff Turner wrote:

> Hi,
> 
> I was just thinking how similar the XML and LDAP data models are. LDAP
> gives you a tree, where each node can contain data -and- can act as a
> namespace for other nodes. This corresponds pretty closely to XML (or
> maybe SML).
> 
> Has anyone explored the possibility of crossover APIs for accessing all
> these 'tree-like' data structures in a standardised way? I'd like to be
> able to traverse an LDAP directory with DOM or SAX.

I can't see any reason why this shouldn't work; as long as you have 
some sort of tree structure, why not use getParentNode and have it 
return as close to the same thing as possible? Not everything from 
DOM or SAX will be applicable, but it would be good to have those 
methods which do the same thing being called the same as well, 
so the meaning is recognisable. 

On a side note, I've even had people talk to me about using DOM 
methods to walk a text document, where you map the lines into 
the equivalents of elements, with the line breaks being the 
demarcation between them. Then you can apply (some) DOM 
methods to the resulting tree. I'm still not sure why anyone would 
*want* to do this, but it's possible.




Lauren

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.