By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,775 Members | 1,347 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,775 IT Pros & Developers. It's quick & easy.

XML => Class

P: n/a
All,

Is there any way to create a class from the XML file or at least to simplify
the process of the creation of the class knowing the XML file format, its
structure, etc.?

The idea is to use an XML file to transfer data between two (or more)
companies. I would not like to expose as our classes as the whole business
logic, but I need to create something like a intermediate class to
read/write the XML file with the appropriate data.This class I suppose can
be sent to our clients to use it in their apps to create the object and
write the XML file with the object data.

The way to create the class first and then serialize it into XML file is not
looking good because the class is complicated enough and has a few arrays
inside, these arrays can also have arrays and maybe I'm wrong but the whole
structure of this class is not looking good to go this way.

Ideas?

Just D.
Mar 27 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Dnia 27-03-2006 o 21:55:25 Just D. <no@spam.please> napisał:
All,

Is there any way to create a class from the XML file or at least to
simplify
the process of the creation of the class knowing the XML file format, its
structure, etc.?

The idea is to use an XML file to transfer data between two (or more)
companies. I would not like to expose as our classes as the whole
business
logic, but I need to create something like a intermediate class to
read/write the XML file with the appropriate data.This class I suppose
can
be sent to our clients to use it in their apps to create the object and
write the XML file with the object data.

The way to create the class first and then serialize it into XML file is
not
looking good because the class is complicated enough and has a few arrays
inside, these arrays can also have arrays and maybe I'm wrong but the
whole
structure of this class is not looking good to go this way.

Ideas?


[PD] Use xsd.exe, this tool is provided exactly to solve such problems.

--
Piotr Dobrowolski
Piotr.Dobrowolski@_usun_gmail.com
Mar 29 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.