473,320 Members | 2,054 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Generating serializable class using XSD.exe

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
Nov 11 '05 #1
5 10320
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

Nov 11 '05 #2
Daniel Cazzulino ... not David ... ts ts ts

"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

Nov 11 '05 #3
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


Nov 11 '05 #4
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



Nov 11 '05 #5
You could also look at liquid technologies data binding wizard, it
creates strongly typed collection classes rather than arrays (in C#).

http://www.liquid-technologies.com/

We've been using it for a bit now, and it seems pretty solid.

Cheers

"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote in message news:<#q**************@TK2MSFTNGP10.phx.gbl>...
Daniel Cazzulino ... not David ... ts ts ts

"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

Nov 11 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Raghul | last post by:
Hi friends, I am creating a jabber client and a separate class for dialog is created,So when the roster name is clicked this dialog open and can continue chat.What I need is I am calling the same...
3
by: tushar | last post by:
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...
0
by: Jonah Olsson | last post by:
Dear Sirs, I'm looking for a way to define a class using an XML file. Since I'm building a Web Service to be used by several customers I want to be able to easily change the class below without...
2
by: | last post by:
Today I learned that creating cookies inside of a custom class in ASP.NET 2.0 requires that you prefix it with HttpContext.Current..., e.g. : ...
2
by: John | last post by:
Hi What is a Serializable class compared to a normal class? Thanks Regards
3
by: Steve Amey | last post by:
Hi all I am using reflection to read the values of properties from a class. The class is returned from a Web Service so I have to access the class using FieldInfo (Using VS 2003 which converts...
6
by: bharathlece | last post by:
hi dear friends plz help me out to solve the following problem I had wrote a program for generating random bits using the function _bios_serialcom but the max spped that can generate is only...
0
by: manuaz | last post by:
Hi I am having problems generating C# class from .xsd files. I have multiple .xsd pointing to each other in different sub directories. In a different situation I was able to generate a class when...
33
semanticnotion
by: semanticnotion | last post by:
i want to make a login class using MVC approach. First my html form code is in my view folder then i want authorizing code in controller class and the query and the connection are under my model...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.