Generating proper classes with XSD.exe

Discussion in 'ASP .Net' started by Kees de Winter, Feb 2, 2007.

  1. Hi

    I'm creating classes from XML documents using XSD.exe. The problem is that
    whenever this program sees an element contained within another element, it
    generates an array of classes. Wouldn't it be better if it generates
    ArrayLists, or Generics? That would be much easier to work with (More
    methods, Intellisense etc.).

    Can the behavior of XSD.exe be adapted, or is there another tool that does
    this?

    Thanks
    --
    Kees de Winter
    Kees de Winter, Feb 2, 2007
    #1
    1. Advertising

  2. The XSD has not been updated for 2.0, so it does not work with the newer
    features as you would expect. Can you alter it? Unlikely. Can you create
    your own code generator? Certainly.

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA
    http://gregorybeamer.spaces.live.com

    ********************************************
    Think outside the box!
    ********************************************
    "Kees de Winter" <> wrote in message
    news:45c33efe$0$14700$...
    > Hi
    >
    > I'm creating classes from XML documents using XSD.exe. The problem is that
    > whenever this program sees an element contained within another element, it
    > generates an array of classes. Wouldn't it be better if it generates
    > ArrayLists, or Generics? That would be much easier to work with (More
    > methods, Intellisense etc.).
    >
    > Can the behavior of XSD.exe be adapted, or is there another tool that does
    > this?
    >
    > Thanks
    > --
    > Kees de Winter
    >
    >
    >
    >
    Cowboy \(Gregory A. Beamer\), Feb 2, 2007
    #2
    1. Advertising

  3. Take a look at XSDObjectGen. This is a plug-in from some MS people and it has
    a VS 2005 command line executable. Much more sophisticated than XSD.EXE.
    Also, on Sourceforge.net you can find "Dingo" which is even more
    sophisticated than that.

    Peter

    --
    Site: http://www.eggheadcafe.com
    UnBlog: http://petesbloggerama.blogspot.com
    Short urls & more: http://ittyurl.net




    "Kees de Winter" wrote:

    > Hi
    >
    > I'm creating classes from XML documents using XSD.exe. The problem is that
    > whenever this program sees an element contained within another element, it
    > generates an array of classes. Wouldn't it be better if it generates
    > ArrayLists, or Generics? That would be much easier to work with (More
    > methods, Intellisense etc.).
    >
    > Can the behavior of XSD.exe be adapted, or is there another tool that does
    > this?
    >
    > Thanks
    > --
    > Kees de Winter
    >
    >
    >
    >
    >
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=, Feb 2, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Burak
    Replies:
    0
    Views:
    560
    Burak
    Jul 1, 2004
  2. =?Utf-8?B?RGF2aWQgSmVzc2Vl?=

    XSD.exe - Generated Classes

    =?Utf-8?B?RGF2aWQgSmVzc2Vl?=, May 31, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    511
    Eliyahu Goldin
    Jun 1, 2006
  3. Andy
    Replies:
    0
    Views:
    264
  4. Burak

    Generating classes from an .xsd file

    Burak, Jun 29, 2004, in forum: ASP .Net Web Services
    Replies:
    8
    Views:
    561
    Burak
    Jul 14, 2004
  5. Hans Sjunnesson

    Generating javascript classes from XSD schema

    Hans Sjunnesson, May 8, 2007, in forum: Javascript
    Replies:
    0
    Views:
    86
    Hans Sjunnesson
    May 8, 2007
Loading...

Share This Page