Hmm ..maybe I've been around for too long, but cross-posting's been a no no
for a long time.
Anyway, unfortunately there is no way to generate Collections from
xsd.exe -- although I wish that there was. If you are planning to generate
the serialization classes as part of an automated build then you would have
to process the output of xsd.exe through an extra little program that
replaces the arrays using regular expressions. The expression is pretty
straight forward integrating this modification into your build process will
avoid any extra work if you ever have to rebuild your classes.
--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
"tushar" <ta******@hotmail.com> wrote in message
news:uq*************@TK2MSFTNGP10.phx.gbl...
Christoph
I checked David Cazzulino's blog but could not find the work around you
mentioned. Anyway, thanks for your reply. I guess I will just write
collection wrappers around source generated by xsd.exe.
I am not a big user of news groups so was really not aware that posting
message in multiple groups is that YUCK as you say! I was just tried to
get max readers by posting in multiple groups.
Regards
"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote in
message news:eA**************@TK2MSFTNGP10.phx.gbl... Cross post ... YUCK!
you couldn't possibly include any other groups, could you ...
check out David Cazzulino's blog for a work around.
--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
"tushar" <ta******@hotmail.com> wrote in message
news:u7**************@TK2MSFTNGP12.phx.gbl... Hi
Serializable classes generated from xsd files using xsd.exe always
uses an array? Is there any way to force xsd.exe to use collection (ArrayList
or equivalent) classes instead of Array? is there any other tool that
could be used?
Thanks in advance
Regards