Active Directory and XML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gary

    #1

    Active Directory and XML

    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
  • Cor Ligthert [MVP]

    #2
    Re: Active Directory and XML

    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(remove)@a mericandreamhom elns.comschreef in bericht
    news:34AD9A2E-4082-418A-A8E3-100B8E390605@mi crosoft.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

    Comment

    • Gary

      #3
      Re: Active Directory and XML

      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(remove)@a mericandreamhom elns.comschreef in bericht
      news:34AD9A2E-4082-418A-A8E3-100B8E390605@mi crosoft.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
      >
      >
      >

      Comment

      • Cor Ligthert [MVP]

        #4
        Re: Active Directory and XML

        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(d t)
        dt.columns.add( "user",GetType( System.String) 'string is default but to show
        dt.columns.add( "email")
        etc.

        dt.loadnewrow(o bject () {"Cor","NotMyFi rstName@planet. nl"},true)

        etc.

        Just typed in here

        I hope this helps,

        Cor

        "Gary" <gary(remove)@a mericandreamhom elns.comschreef in bericht
        news:3353975A-D83E-4D93-B401-C00B2BC4C671@mi crosoft.com...
        >I would like to take all of the properties from a AD user cn,
        >email,manage r,
        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(remove)@a mericandreamhom elns.comschreef in bericht
        >news:34AD9A2 E-4082-418A-A8E3-100B8E390605@mi crosoft.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
        >>
        >>
        >>

        Comment

        • GhostInAK

          #5
          Re: Active Directory and XML

          Hello Gary,

          Check out the System.XML.Seri alization namespace. Specifically the XMLSerializer
          class.

          -Boo
          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
          >

          Comment

          Working...