Home All Groups Group Topic Archive Search About

Active Directory and XML

Author
24 Jul 2006 1:46 AM
Gary
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

Author
24 Jul 2006 5:08 AM
Cor Ligthert [MVP]
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

Show quoteHide quote
"Gary" <gary(remo***@americandreamhomelns.com> schreef in bericht
news:34AD9A2E-4082-418A-A8E3-100B8E390605@microsoft.com...
> 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
Author
24 Jul 2006 1:37 PM
Gary
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


Show quoteHide quote
"Cor Ligthert [MVP]" wrote:

> 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
>
> "Gary" <gary(remo***@americandreamhomelns.com> schreef in bericht
> news:34AD9A2E-4082-418A-A8E3-100B8E390605@microsoft.com...
> > 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
>
>
>
Author
24 Jul 2006 1:44 PM
Cor Ligthert [MVP]
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","NotMyFirstN***@planet.nl"},true)

etc.

Just typed in here

I hope this helps,

Cor

Show quoteHide quote
"Gary" <gary(remo***@americandreamhomelns.com> schreef in bericht
news:3353975A-D83E-4D93-B401-C00B2BC4C671@microsoft.com...
>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
>
>
> "Cor Ligthert [MVP]" wrote:
>
>> 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
>>
>> "Gary" <gary(remo***@americandreamhomelns.com> schreef in bericht
>> news:34AD9A2E-4082-418A-A8E3-100B8E390605@microsoft.com...
>> > 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
>>
>>
>>
Author
24 Jul 2006 6:33 PM
GhostInAK
Hello Gary,

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

-Boo

Show quoteHide quote
> 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
>