Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Generating proper classes with XSD.exe

Reply
Thread Tools

Generating proper classes with XSD.exe

 
 
Kees de Winter
Guest
Posts: n/a
 
      02-02-2007
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




 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      02-02-2007
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
>
>
>
>


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      02-02-2007
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
>
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
proper use of classes Tom Cloyd Ruby 31 02-04-2009 06:57 AM
How to design proper classes when the requirements are quite complex? tenxian Java 7 04-27-2008 11:17 PM
Generating the proper url D. Alvarado Java 0 10-25-2004 07:53 PM
Generating base classes from sql server Poppy ASP .Net 1 07-30-2004 10:45 AM
XDoclet not generating proper deployment descriptors SmokingGun Java 0 02-09-2004 07:19 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57