Active Directory and XML

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know of a way to take all of the properties of a user entry, and
their values and create a XML document from them?

Thanks
 
Gary,

What do you mean with user entry and what kind of XML document you want. A
XML document can be a lot of things. The easiest one to create is a dataset.

Cor
 
I would like to take all of the properties from a AD user cn, email,manager,
etc and pun them into a XML document that can be used as output from a web
service. The exact format isn't important as long as I can use it in managed
code (VB.Net).

Thanks
 
Gary,

Than in my idea you can just create a dataset works fine in a webservice as
well.

Dim ds as new dataset
dim dt as new datatable
ds.tables.add(dt)
dt.columns.add("user",GetType(System.String) 'string is default but to show
dt.columns.add("email")
etc.

dt.loadnewrow(object () {"Cor","(e-mail address removed)"},true)

etc.

Just typed in here

I hope this helps,

Cor
 
Hello Gary,

Check out the System.XML.Serialization namespace. Specifically the XMLSerializer
class.

-Boo
 
Back
Top