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

Re: XML and LDAP: Common APIs?

  • From: tpassin@h...
  • To: xml-dev@l...
  • Date: Thu, 24 Aug 2000 01:03:09 -0400

xml to ldap
Jeff Turner was thinking about LDAP -

> 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. How about querying
> LDAP with an XPath expression, or a stylesheet? Going the other way, how
> about accessing an XML document with an API like Sun's JNDI? I see that
> Sun have got a DSML "service provider", but wouldn't it be possible to
> generalise this to access any well-formed XML?
>
> Since LDAP is usually layered on a database, doesn't LDAP provide a
> simple kind of XML Database? Has anyone tried to map XML directly into
> LDAP like this?

LDAP is, I think, defined in terms of asn.1.  There is no standard xml
encoding for asn.1 yet.
asn.1 syntax can express things that can't be expressed in a dtd - mostly
data types, enumerated values, and constraints.  Presumably, xml schemas
will be able to express everything that a set of asn.1 type assignments can,
although I don't know if that is for sure or not.  Various people are
looking at encoding asn.1 in xml.

Since a binary encoding of an asn.1 instance is nothing like xml, I assume
that you mean if you already had an asn.1 instance that had been parsed by
an asn.1 parser. It does look like you ought to be able to make that tree
look like an xml tree, in which case you might be able to do what you
suggest.

Here's a link to an asn.1 vendor - you can look at their tools.  Basically,
it seems that the tools produce C or Java structures that represent the
various defined types.  I'm not too clear what people usually do about
querying and so forth.

http://www.oss.com/products/products.html

Cheers,

Tom Passin



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.